git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70891
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if (control)
{
wxClientDC temp_dc((wxRibbonPanel*) this);
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;
}
wxSize overallSize = m_art->GetPanelSize(temp_dc, this, childSize, NULL);
return overallSize;
}