changeset 1457:c22477fe7347

Split out scrollbars from the rest of the ranged widgets on Mac... the others require extra size.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 15 Dec 2011 22:22:49 +0000
parents 6bf5dc7da45d
children 23f7fcc1c727
files mac/dw.m
diffstat 1 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Thu Dec 15 22:03:54 2011 +0000
+++ b/mac/dw.m	Thu Dec 15 22:22:49 2011 +0000
@@ -3447,11 +3447,16 @@
             extraheight = 4;
     }
     /* Handle the ranged widgets */
-    else if([ object isMemberOfClass:[DWScrollbar class] ] ||
-            [ object isMemberOfClass:[DWPercent class] ] ||
+    else if([ object isMemberOfClass:[DWPercent class] ] ||
             [ object isMemberOfClass:[DWSlider class] ])
     {
-        if([ object isMemberOfClass:[DWScrollbar class] ] && [object vertical])
+        thiswidth = 100;
+        thisheight = 20;
+    }
+    /* Handle the ranged widgets */
+    else if([ object isMemberOfClass:[DWScrollbar class] ])
+    {
+        if([object vertical])
         {
             thiswidth = 14;
             thisheight = 100;
@@ -3484,7 +3489,7 @@
         if([object isBordered] || (DWOSMinor > 5 && [object isBezeled]))
             extrawidth = 12;
         else
-            extrawidth = 8;
+            extrawidth = 10;
     }
     
     /* If we have a string...