From d4473a9b58ee60897af3680f4870ca70e1c2d603 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 25 Jan 2012 00:04:59 +0000 Subject: [PATCH] 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 --- src/ribbon/panel.cpp | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.45.2