From: Vadim Zeitlin Date: Wed, 25 Jan 2012 00:04:59 +0000 (+0000) Subject: Set the initial size of the expanded ribbon panel correctly. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d4473a9b58ee60897af3680f4870ca70e1c2d603 Set the initial size of the expanded ribbon panel correctly. We need to set the client size of the frame showing the panel to the panel size and not the full frame size. Closes #13850. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/ribbon/panel.cpp b/src/ribbon/panel.cpp index 05621a9a05..06ad53dd89 100644 --- a/src/ribbon/panel.cpp +++ b/src/ribbon/panel.cpp @@ -775,6 +775,7 @@ bool wxRibbonPanel::ShowExpanded() m_expanded_panel->Realize(); Refresh(); + container->SetMinClientSize(size); container->Show(); m_expanded_panel->SetFocus();