Mercurial > dwindows
comparison mac/dw.m @ 2431:b0e6f8f0a1ff
Mac: Port a spinbutton size fix from iOS after noticing the misbehavior
after the dwtest change in the last commit.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 05 Apr 2021 15:29:33 +0000 |
parents | 50e1ddce0aeb |
children | af5487a11954 |
comparison
equal
deleted
inserted
replaced
2430:e08968d21d45 | 2431:b0e6f8f0a1ff |
---|---|
4834 NSFont *font = [object font]; | 4834 NSFont *font = [object font]; |
4835 | 4835 |
4836 if([object isEditable]) | 4836 if([object isEditable]) |
4837 { | 4837 { |
4838 /* Spinbuttons don't need to be as wide */ | 4838 /* Spinbuttons don't need to be as wide */ |
4839 if([object isMemberOfClass:[ DWSpinButton class]]) | 4839 if([handle isMemberOfClass:[ DWSpinButton class]]) |
4840 thiswidth = 50; | 4840 thiswidth = 50; |
4841 else | 4841 else |
4842 thiswidth = 150; | 4842 thiswidth = 150; |
4843 /* Comboboxes need some extra height for the border */ | 4843 /* Comboboxes need some extra height for the border */ |
4844 if([object isMemberOfClass:[ DWComboBox class]]) | 4844 if([object isMemberOfClass:[ DWComboBox class]]) |