Fix ribbon panel size after calling Realize() again

Reset m_smallest_unminimised_size variable in Realize() before calling
GetPanelSizerMinSize() to prevent the latter from using the old value of
that variable, which could result in panel elements being cut off.

Closes #18226.
This commit is contained in:
wxBen
2018-09-23 16:04:58 +02:00
committed by Vadim Zeitlin
parent 1833c3d8e4
commit efb52e7078

View File

@@ -671,6 +671,10 @@ bool wxRibbonPanel::Realize()
wxSize minimum_children_size(0, 0);
// Reset it before calling GetPanelSizerMinSize() below as it shouldn't use
// the old value, if we had any.
m_smallest_unminimised_size = wxDefaultSize;
// Ask sizer if there is one present
if(GetSizer())
{