comparison 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
comparison
equal deleted inserted replaced
1907:54f9ec5bb793 1908:7e23f3dccb6b
3927 /* Spinbuttons don't need to be as wide */ 3927 /* Spinbuttons don't need to be as wide */
3928 if([object isMemberOfClass:[ DWSpinButton class]]) 3928 if([object isMemberOfClass:[ DWSpinButton class]])
3929 thiswidth = 50; 3929 thiswidth = 50;
3930 else 3930 else
3931 thiswidth = 150; 3931 thiswidth = 150;
3932 /* Comboboxes need some extra height for the border... 3932 /* Comboboxes need some extra height for the border */
3933 * and even more with the new look in Yosemite.
3934 */
3935 if([object isMemberOfClass:[ DWComboBox class]]) 3933 if([object isMemberOfClass:[ DWComboBox class]])
3936 extraheight = DWOSMinor < 10 ? 4 : 8; 3934 extraheight = 4;
3935 /* Yosemite and higher requires even more border space */
3936 if(DWOSMinor > 9)
3937 extraheight += 4;
3937 } 3938 }
3938 else 3939 else
3939 nsstr = [object stringValue]; 3940 nsstr = [object stringValue];
3940 3941
3941 if(font) 3942 if(font)