Revision: 3036
http://skim-app.svn.sourceforge.net/skim-app/?rev=3036&view=rev
Author: hofman
Date: 2007-10-11 15:57:25 -0700 (Thu, 11 Oct 2007)
Log Message:
-----------
Redisplay the whole pdfview when moving the reading bar using keys, as the page
may scroll.
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2007-10-11 18:10:07 UTC (rev 3035)
+++ trunk/SKPDFView.m 2007-10-11 22:57:25 UTC (rev 3036)
@@ -2691,7 +2691,6 @@
- (void)moveReadingBarForKey:(unichar)eventChar {
BOOL moved = NO;
NSMutableDictionary *userInfo = [NSMutableDictionary
dictionaryWithObjectsAndKeys:[readingBar page], @"oldPage", nil];
- [self setNeedsDisplayInRect:[readingBar currentBoundsForBox:[self
displayBox]] ofPage:[readingBar page]];
if (eventChar == NSDownArrowFunctionKey)
moved = [readingBar goToNextLine];
else if (eventChar == NSUpArrowFunctionKey)
@@ -2702,7 +2701,7 @@
moved = [readingBar goToPreviousPage];
if (moved) {
[self scrollRect:NSInsetRect([readingBar currentBounds], 0.0, -20.0)
inPageToVisible:[readingBar page]];
- [self setNeedsDisplayInRect:[readingBar currentBoundsForBox:[self
displayBox]] ofPage:[readingBar page]];
+ [self setNeedsDisplay:YES];
[userInfo setObject:[readingBar page] forKey:@"newPage"];
[[NSNotificationCenter defaultCenter]
postNotificationName:SKPDFViewReadingBarDidChangeNotification object:self
userInfo:userInfo];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit