Revision: 5082
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5082&view=rev
Author:   hofman
Date:     2008-12-22 11:15:58 +0000 (Mon, 22 Dec 2008)

Log Message:
-----------
make a slightly larger area around a match visible when selecting a search 
result 

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2008-12-21 18:21:15 UTC (rev 5081)
+++ trunk/SKMainWindowController.m      2008-12-22 11:15:58 UTC (rev 5082)
@@ -2934,7 +2934,9 @@
     
     if (scroll && firstSel) {
         [pdfView setCurrentSelection:currentSel];
-        [pdfView scrollSelectionToVisible:self];
+        PDFPage *page = [[currentSel pages] objectAtIndex:0];
+        NSRect rect = NSIntersectionRect(NSInsetRect([currentSel 
boundsForPage:page], -50.0, -50.0), [page boundsForBox:kPDFDisplayBoxCropBox]);
+        [pdfView scrollRect:rect inPageToVisible:page];
     }
     
     [self removeTemporaryAnnotations];


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

------------------------------------------------------------------------------
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to