Revision: 6683
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6683&view=rev
Author:   hofman
Date:     2010-08-09 21:24:58 +0000 (Mon, 09 Aug 2010)

Log Message:
-----------
relayout splitview after removing secondary pdfview.

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

Modified: trunk/SKMainWindowController_Actions.m
===================================================================
--- trunk/SKMainWindowController_Actions.m      2010-08-09 11:28:08 UTC (rev 
6682)
+++ trunk/SKMainWindowController_Actions.m      2010-08-09 21:24:58 UTC (rev 
6683)
@@ -915,6 +915,11 @@
     [self setFindPaneState:[sender tag]];
 }
 
+- (void)removeSecondaryPdfContentView {
+    [secondaryPdfContentView removeFromSuperview];
+    [pdfSplitView adjustSubviews];
+}
+
 - (IBAction)toggleSplitPDF:(id)sender {
     if ([pdfSplitView isAnimating])
         return;
@@ -923,7 +928,7 @@
         
         NSTimeInterval delay = [[NSUserDefaults standardUserDefaults] 
boolForKey:SKDisableAnimationsKey] ? 0.0 : [[NSAnimationContext currentContext] 
duration];
         [pdfSplitView setPosition:[pdfSplitView 
maxPossiblePositionOfDividerAtIndex:0] ofDividerAtIndex:0 animate:YES];
-        [secondaryPdfContentView 
performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:delay];
+        [self performSelector:@selector(removeSecondaryPdfContentView) 
withObject:nil afterDelay:delay];
         
     } else {
         


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 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to