From c9b240e89371cd90b8d20ccc7710128083236826 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 30 Dec 2018 15:40:00 +0100 Subject: [PATCH] Try to better explain what wxFIXED_MINSIZE does Don't mention the non-existent GetAdjustedBestSize() function and do explain what setting wxFIXED_MINSIZE achieves and how it can be done without it. Closes #18315. --- interface/wx/sizer.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/interface/wx/sizer.h b/interface/wx/sizer.h index 1cc562ac76..e096c08c9d 100644 --- a/interface/wx/sizer.h +++ b/interface/wx/sizer.h @@ -83,12 +83,14 @@ The item will be expanded as much as possible while also maintaining its aspect ratio.} @itemdef{wxFIXED_MINSIZE, - Normally wxSizers will use GetAdjustedBestSize() to determine what - the minimal size of window items should be, and will use that size - to calculate the layout. This allows layouts to adjust when an - item changes and its best size becomes different. If you would - rather have a window item stay the size it started with then use - @c wxFIXED_MINSIZE.} + Normally sizers use the "best", i.e. most appropriate, size of the + window to determine what the minimal size of window items should be. + This allows layouts to adjust correctly when the item contents, + and hence its best size, changes. If this behaviour is unwanted, + @c wxFIXED_MINSIZE can be used to fix minimal size of the window + to its initial value and not change it any more in the future. + Note that the same thing can be accomplished by calling + wxWindow::SetMinSize() explicitly as well.} @itemdef{wxRESERVE_SPACE_EVEN_IF_HIDDEN, Normally wxSizers don't allocate space for hidden windows or other items. This flag overrides this behaviour so that sufficient space