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:
parent
1833c3d8e4
commit
efb52e7078
1 changed files with 4 additions and 0 deletions
|
|
@ -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())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue