Revision: 7323 http://skim-app.svn.sourceforge.net/skim-app/?rev=7323&view=rev Author: hofman Date: 2011-07-05 11:24:56 +0000 (Tue, 05 Jul 2011)
Log Message: ----------- take layout offset into account for display pref view size Modified Paths: -------------- trunk/SKDisplayPreferences.m Modified: trunk/SKDisplayPreferences.m =================================================================== --- trunk/SKDisplayPreferences.m 2011-07-04 18:30:07 UTC (rev 7322) +++ trunk/SKDisplayPreferences.m 2011-07-05 11:24:56 UTC (rev 7323) @@ -83,8 +83,14 @@ CGFloat w = 0.0; for (NSView *view in [[self view] subviews]) { - if (([view autoresizingMask] & NSViewWidthSizable) == 0) - w = fmax(w, NSMaxX([view frame])); + if (([view autoresizingMask] & NSViewWidthSizable) == 0) { + CGFloat x = NSMaxX([view frame]); + if ([view isKindOfClass:[NSSlider class]] || [view isKindOfClass:[NSButton class]]) + x -= 2.0; + else if ([view isKindOfClass:[NSComboBox class]]) + x -= 3.0; + w = fmax(w, x); + } } NSSize size = [[self view] frame].size; size.width = w + 20.0; 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 Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit