Revision: 7135
http://skim-app.svn.sourceforge.net/skim-app/?rev=7135&view=rev
Author: hofman
Date: 2011-03-02 18:15:15 +0000 (Wed, 02 Mar 2011)
Log Message:
-----------
center synctex location in pdfview
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2011-03-02 11:10:26 UTC (rev 7134)
+++ trunk/SKPDFView.m 2011-03-02 18:15:15 UTC (rev 7135)
@@ -2169,6 +2169,11 @@
[self setCurrentSelection:sel];
}
}
+ if ([self displayMode] == kPDFDisplaySinglePageContinuous || [self
displayMode] == kPDFDisplayTwoUpContinuous) {
+ NSRect visibleRect = [self convertRect:[[self documentView]
visibleRect] fromView:[self documentView]];
+ visibleRect = [self convertRect:visibleRect toPage:[readingBar
page]];
+ rect = NSInsetRect(rect, 0.0, - floor( ( NSHeight(visibleRect) -
NSHeight(rect) ) / 2.0 ) );
+ }
[self goToRect:rect onPage:page];
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit