Revision: 2583
http://skim-app.svn.sourceforge.net/skim-app/?rev=2583&view=rev
Author: hofman
Date: 2007-07-29 03:09:11 -0700 (Sun, 29 Jul 2007)
Log Message:
-----------
Hide hover window when closing left side pane.
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2007-07-29 09:38:47 UTC (rev 2582)
+++ trunk/SKMainWindowController.m 2007-07-29 10:09:11 UTC (rev 2583)
@@ -1775,6 +1775,7 @@
- (IBAction)toggleLeftSidePane:(id)sender {
if ([self isFullScreen]) {
+ [[SKPDFHoverWindow sharedHoverWindow] hide];
if ([leftSideWindow state] == NSDrawerOpenState || [leftSideWindow
state] == NSDrawerOpeningState)
[leftSideWindow hideSideWindow];
else
@@ -1788,7 +1789,9 @@
NSRect sideFrame = [leftSideContentBox frame];
NSRect pdfFrame = [pdfContentBox frame];
- if(NSWidth(sideFrame) > 0.0){
+ if (NSWidth(sideFrame) > 0.0) {
+ if (leftSidePaneState == SKOutlineSidePaneState || [[searchField
stringValue] length])
+ [[SKPDFHoverWindow sharedHoverWindow] hide];
lastLeftSidePaneWidth = NSWidth(sideFrame); // cache this
pdfFrame.size.width += lastLeftSidePaneWidth;
sideFrame.size.width = 0.0;
@@ -1820,7 +1823,7 @@
NSRect sideFrame = [rightSideContentBox frame];
NSRect pdfFrame = [pdfContentBox frame];
- if(NSWidth(sideFrame) > 1.0){
+ if (NSWidth(sideFrame) > 1.0) {
lastRightSidePaneWidth = NSWidth(sideFrame); // cache this
pdfFrame.size.width += lastRightSidePaneWidth;
sideFrame.size.width = 0.0;
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: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit