Fixed size calculation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2012-03-13 08:42:03 +00:00
parent 98742322cd
commit a64f38d674

View File

@@ -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;
}