Mercurial > dwindows
diff mac/dw.m @ 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 | 4b516ef23b62 |
children | cd3d7e341467 |
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...