Revision: 7321
http://skim-app.svn.sourceforge.net/skim-app/?rev=7321&view=rev
Author: hofman
Date: 2011-07-04 17:58:23 +0000 (Mon, 04 Jul 2011)
Log Message:
-----------
just look at all non-resizable views to get the right-most one to determine the
display pref view width
Modified Paths:
--------------
trunk/SKDisplayPreferences.m
Modified: trunk/SKDisplayPreferences.m
===================================================================
--- trunk/SKDisplayPreferences.m 2011-07-04 17:55:21 UTC (rev 7320)
+++ trunk/SKDisplayPreferences.m 2011-07-04 17:58:23 UTC (rev 7321)
@@ -81,15 +81,13 @@
SKAutoSizeLabelFields([NSArray
arrayWithObjects:searchHighlightCheckButton, nil], [NSArray
arrayWithObjects:searchHighlightColorWell, nil], NO);
[[colorControls lastObject] sizeToFit];
- CGFloat x = NSMaxX([[thumbnailSizeControls lastObject] frame]);
- x = fmax(x, NSMaxX([tableFontComboBox frame]));
- x = fmax(x, NSMaxX([greekingTextField frame]));
- x = fmax(x, NSMaxX([antiAliasCheckButton frame]));
- x = fmax(x, NSMaxX([fullScreenBackgroundColorWell frame]));
- x = fmax(x, NSMaxX([fullScreenBackgroundColorWell frame]));
- x = fmax(x, NSMaxX([[colorControls lastObject] frame]));
+ CGFloat w = 0.0;
+ for (NSView *view in [[self view] subviews]) {
+ if (([view autoresizingMask] & NSViewWidthSizable) == 0)
+ w = fmax(w, NSMaxX([view frame]));
+ }
NSSize size = [[self view] frame].size;
- size.width = x + 20.0;
+ size.width = w + 20.0;
[[self view] setFrameSize:size];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit