Revision: 18077
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18077&view=rev
Author:   hofman
Date:     2011-08-21 12:03:49 +0000 (Sun, 21 Aug 2011)

Log Message:
-----------
use zero scroller width on Lion when using overlay style

Modified Paths:
--------------
    trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2011-08-21 
06:35:00 UTC (rev 18076)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2011-08-21 
12:03:49 UTC (rev 18077)
@@ -146,6 +146,20 @@
 #endif
 @end
 
+#if !defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MAX_ALLOWED <= 
MAC_OS_X_VERSION_10_6
+
+enum {
+   NSScrollerStyleLegacy,
+   NSScrollerStyleOverlay
+};
+typedef NSInteger NSScrollerStyle;
+
+@interface NSScroller (SKLionDeclarations)
+- (NSScrollerStyle)scrollerStyle;
+@end
+
+#endif
+
 #pragma mark -
 
 @interface FVFileView (Private)
@@ -1147,6 +1161,8 @@
 }
 
 static CGFloat _scrollerWidthForScroller(NSScroller *scroller) {
+    if ([scroller respondsToSelector:@selector(scrollerStyle)] && [scroller 
scrollerStyle] == NSScrollerStyleOverlay)
+        return 0.0;
     return [[scroller class] scrollerWidthForControlSize:[scroller 
controlSize]];
 }
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to