]> git.saurik.com Git - wxWidgets.git/commitdiff
Set the initial size of the expanded ribbon panel correctly.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 25 Jan 2012 00:04:59 +0000 (00:04 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 25 Jan 2012 00:04:59 +0000 (00:04 +0000)
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

index 05621a9a052739559b99959992351adf4f4662ed..06ad53dd8961bfd786b827cf6b7589a9025a7d1e 100644 (file)
@@ -775,6 +775,7 @@ bool wxRibbonPanel::ShowExpanded()
 
     m_expanded_panel->Realize();
     Refresh();
+    container->SetMinClientSize(size);
     container->Show();
     m_expanded_panel->SetFocus();