Make wxTextCtrl with no wxTE_MULTILINE style really single-line (wxOSX)
Under wxGTK wrapping for single-line controls is explictly disabled (see wxTextCtrl::GTKSetWrapMode), under wxMSW wrapping is not supported, so for the sake of consistency also under wxOSX single-line control shouldn't support wrapping and vertical scrolling. Closes #12693.
This commit is contained in:
@@ -1398,10 +1398,7 @@ wxWidgetImplType* wxWidgetImpl::CreateTextControl( wxTextCtrl* wxpeer,
|
|||||||
}
|
}
|
||||||
|
|
||||||
NSTextFieldCell* cell = [v cell];
|
NSTextFieldCell* cell = [v cell];
|
||||||
[cell setScrollable:YES];
|
[cell setUsesSingleLineMode:YES];
|
||||||
// TODO: Remove if we definitely are sure, it's not needed
|
|
||||||
// as setting scrolling to yes, should turn off any wrapping
|
|
||||||
// [cell setLineBreakMode:NSLineBreakByClipping];
|
|
||||||
|
|
||||||
c = new wxNSTextFieldControl( wxpeer, wxpeer, v );
|
c = new wxNSTextFieldControl( wxpeer, wxpeer, v );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user