OS X: Fix wxEVT_SIZE handling in wxDataViewCtrl
Don't set Cocoa autoresizing mask on the control, because it causes it to be, well, automatically resized, causing wx code to miss the size change and omit wxEVT_SIZE events. As wx handles all of the sizing and positioning itself, it almost never makes sense to use setAutoresizingMask:
This commit is contained in:
parent
7d03ed608b
commit
0fa34f8d5b
@ -1917,7 +1917,6 @@ wxCocoaDataViewControl::wxCocoaDataViewControl(wxWindow* peer,
|
||||
// initialize scrollview (the outline view is part of a scrollview):
|
||||
NSScrollView* scrollview = (NSScrollView*) GetWXWidget();
|
||||
|
||||
[scrollview setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
|
||||
[scrollview setBorderType:NSNoBorder];
|
||||
[scrollview setHasVerticalScroller:YES];
|
||||
[scrollview setHasHorizontalScroller:YES];
|
||||
|
Loading…
Reference in New Issue
Block a user