From a64f38d67431a068d6c08b54500527dde04ed703 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 13 Mar 2012 08:42:03 +0000 Subject: [PATCH] Fixed size calculation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/ribbon/panel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ribbon/panel.cpp b/src/ribbon/panel.cpp index f8f26f1e89..91c014e414 100644 --- a/src/ribbon/panel.cpp +++ b/src/ribbon/panel.cpp @@ -321,7 +321,8 @@ wxSize wxRibbonPanel::GetBestSizeForParentSize(const wxSize& parentSize) const if (control) { wxClientDC temp_dc((wxRibbonPanel*) this); - wxSize childSize = control->GetBestSizeForParentSize(parentSize); + wxSize clientParentSize = m_art->GetPanelClientSize(temp_dc, this, parentSize, NULL); + wxSize childSize = control->GetBestSizeForParentSize(clientParentSize); wxSize overallSize = m_art->GetPanelSize(temp_dc, this, childSize, NULL); return overallSize; } -- 2.45.2