Revision: 5627
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5627&view=rev
Author:   hofman
Date:     2009-09-02 18:46:30 +0000 (Wed, 02 Sep 2009)

Log Message:
-----------
go back o the current page when it isn't visible after a display mode change, 
10.6 scrolls back to the first page

Modified Paths:
--------------
    trunk/SKPDFView.m

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2009-09-02 14:55:54 UTC (rev 5626)
+++ trunk/SKPDFView.m   2009-09-02 18:46:30 UTC (rev 5627)
@@ -589,7 +589,10 @@
 
 - (void)setDisplayMode:(PDFDisplayMode)mode {
     if (mode != [self displayMode]) {
+        PDFPage *page = [self currentPage];
         [super setDisplayMode:mode];
+        if (page && NSLocationInRange([page pageIndex], [self 
visiblePageIndexRange]) == NO)
+            [self goToPage:page];
         [self relayoutEditField];
         [accessibilityChildren release];
         accessibilityChildren = nil;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to