Mercurial > dwindows
diff mac/dw.m @ 1908:7e23f3dccb6b
Add extra border space to all entryfield controls on Yosemite and higher.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 19 Sep 2015 10:14:03 +0000 |
parents | 54f9ec5bb793 |
children | 3872ab37297b |
line wrap: on
line diff
--- a/mac/dw.m Mon Jul 27 10:27:05 2015 +0000 +++ b/mac/dw.m Sat Sep 19 10:14:03 2015 +0000 @@ -3929,11 +3929,12 @@ thiswidth = 50; else thiswidth = 150; - /* Comboboxes need some extra height for the border... - * and even more with the new look in Yosemite. - */ + /* Comboboxes need some extra height for the border */ if([object isMemberOfClass:[ DWComboBox class]]) - extraheight = DWOSMinor < 10 ? 4 : 8; + extraheight = 4; + /* Yosemite and higher requires even more border space */ + if(DWOSMinor > 9) + extraheight += 4; } else nsstr = [object stringValue];