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:
@@ -321,7 +321,8 @@ wxSize wxRibbonPanel::GetBestSizeForParentSize(const wxSize& parentSize) const
|
|||||||
if (control)
|
if (control)
|
||||||
{
|
{
|
||||||
wxClientDC temp_dc((wxRibbonPanel*) this);
|
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);
|
wxSize overallSize = m_art->GetPanelSize(temp_dc, this, childSize, NULL);
|
||||||
return overallSize;
|
return overallSize;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user