Fix scrolling behaviour of wxSearchCtrl under OS X
Make it behave in the same way as single line wxTextCtrls do. See #17178.
This commit is contained in:
parent
beffb32d2d
commit
bedbdb116d
1 changed files with 4 additions and 0 deletions
|
|
@ -204,6 +204,10 @@ wxWidgetImplType* wxWidgetImpl::CreateSearchControl( wxSearchCtrl* wxpeer,
|
|||
{
|
||||
NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ;
|
||||
wxNSSearchField* v = [[wxNSSearchField alloc] initWithFrame:r];
|
||||
|
||||
// Make it behave consistently with the single line wxTextCtrl
|
||||
[[v cell] setScrollable:YES];
|
||||
|
||||
[[v cell] setSendsWholeSearchString:YES];
|
||||
// per wx default cancel is not shown
|
||||
[[v cell] setCancelButtonCell:nil];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue