Honour window min and max sizes in wxWindow::GetBestSize().
The best size of the window should be at least as large as its min size and less than its max size. This allows to override the windows own best size determination with an explicit SetMinSize() or SetMaxSize() call. See #11497. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -845,6 +845,12 @@ public:
|
||||
convenient, DoGetBestClientSize() when writing your own custom window
|
||||
class to change the value returned by this public non-virtual method.
|
||||
|
||||
Notice that the best size respects the minimal and maximal size
|
||||
explicitly set for the window, if any. So even if some window believes
|
||||
that it needs 200 pixels horizontally, calling SetMaxSize() with a
|
||||
width of 100 would ensure that GetBestSize() returns the width of at
|
||||
most 100 pixels.
|
||||
|
||||
@see CacheBestSize(), @ref overview_windowsizing
|
||||
*/
|
||||
wxSize GetBestSize() const;
|
||||
|
Reference in New Issue
Block a user