Fixed text field/label bordering on Mac OS X.
This commit is contained in:
parent
65db139be7
commit
01136cbd86
|
@ -102,9 +102,10 @@ static id finishNewTextField(NSTextField *t, BOOL bordered)
|
||||||
{
|
{
|
||||||
// same for text fields, password fields, and labels
|
// same for text fields, password fields, and labels
|
||||||
setStandardControlFont((id) t);
|
setStandardControlFont((id) t);
|
||||||
// TODO text field/password field border (Interface Builder setting is confusing)
|
// these three are the same across text fields, password fields, and labels; the only difference is the setBezeled: value, and it's only different on labels
|
||||||
if (!bordered)
|
[t setBezelStyle:NSTextFieldSquareBezel];
|
||||||
[t setBordered:NO];
|
[t setBezeled:bordered];
|
||||||
|
[t setBordered:NO];
|
||||||
// smart quotes and other autocorrect features are handled by the window; see newWindow() in window_darwin.m for details
|
// smart quotes and other autocorrect features are handled by the window; see newWindow() in window_darwin.m for details
|
||||||
// Interface Builder does this to make the text box behave properly
|
// Interface Builder does this to make the text box behave properly
|
||||||
// this disables both word wrap AND ellipsizing in one fell swoop
|
// this disables both word wrap AND ellipsizing in one fell swoop
|
||||||
|
|
Loading…
Reference in New Issue