Revision: 3348
http://skim-app.svn.sourceforge.net/skim-app/?rev=3348&view=rev
Author: hofman
Date: 2008-01-07 11:46:35 -0800 (Mon, 07 Jan 2008)
Log Message:
-----------
Swap in PDFView a little bit later to avoid a resize and relayout. Remove
obsolete commented call.
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2008-01-07 19:19:53 UTC (rev 3347)
+++ trunk/SKMainWindowController.m 2008-01-07 19:46:35 UTC (rev 3348)
@@ -475,14 +475,6 @@
// windowControllerDidLoadNib: is not called automatically because the
document overrides makeWindowControllers
[[self document] windowControllerDidLoadNib:self];
- [pdfView setFrame:[[pdfEdgeView contentView] bounds]];
- [pdfEdgeView addSubview:pdfView];
-
- // this is mainly needed when the pdf auto-scales
- //[pdfView layoutDocumentView];
-
- [[self window] makeFirstResponder:[pdfView documentView]];
-
// Show/hide left side pane if necessary
if ([sud boolForKey:SKOpenContentsPaneOnlyForTOCKey] && [self
leftSidePaneIsOpen] == (pdfOutline == nil))
[self toggleLeftSidePane:self];
@@ -491,6 +483,12 @@
else
[leftSideButton setEnabled:NO forSegment:SKOutlineSidePaneState];
+ // Due to a bug in Leopard we should only resize and swap in the PDFView
after loading the PDFDocument
+ [pdfView setFrame:[[pdfEdgeView contentView] bounds]];
+ [pdfEdgeView addSubview:pdfView];
+
+ [[self window] makeFirstResponder:[pdfView documentView]];
+
// Go to page?
unsigned int pageIndex = NSNotFound;
if (hasWindowSetup)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit