Revision: 6839
http://skim-app.svn.sourceforge.net/skim-app/?rev=6839&view=rev
Author: hofman
Date: 2010-09-23 23:36:57 +0000 (Thu, 23 Sep 2010)
Log Message:
-----------
don't let side panes remember size that's smaller than the min size
Modified Paths:
--------------
trunk/SKMainWindowController_Actions.m
Modified: trunk/SKMainWindowController_Actions.m
===================================================================
--- trunk/SKMainWindowController_Actions.m 2010-09-23 09:51:46 UTC (rev
6838)
+++ trunk/SKMainWindowController_Actions.m 2010-09-23 23:36:57 UTC (rev
6839)
@@ -884,7 +884,7 @@
if ([self leftSidePaneIsOpen]) {
if ([[[self window] firstResponder]
isDescendantOf:leftSideContentView])
[[self window] makeFirstResponder:pdfView];
- lastLeftSidePaneWidth = NSWidth([leftSideContentView frame]);
+ lastLeftSidePaneWidth = fmaxf(100.0, NSWidth([leftSideContentView
frame]));
} else {
if(lastLeftSidePaneWidth <= 0.0)
lastLeftSidePaneWidth = 250.0; // a reasonable value to start
@@ -917,7 +917,7 @@
if ([self rightSidePaneIsOpen]) {
if ([[[self window] firstResponder]
isDescendantOf:rightSideContentView])
[[self window] makeFirstResponder:pdfView];
- lastRightSidePaneWidth = NSWidth([rightSideContentView frame]);
+ lastRightSidePaneWidth = fmaxf(100.0,
NSWidth([rightSideContentView frame]));
} else {
if(lastRightSidePaneWidth <= 0.0)
lastRightSidePaneWidth = 250.0; // a reasonable value to start
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit