From 2bbbb7892f3998ba37c3403fa72d7e8b10a28e22 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 3 Apr 2008 23:28:16 +0000 Subject: [PATCH] Fix AdjustForOverflow to use item->CalcMin, not item->GetSize git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/gbsizer.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/common/gbsizer.cpp b/src/common/gbsizer.cpp index d0d8bffde9..bb601c31ac 100644 --- a/src/common/gbsizer.cpp +++ b/src/common/gbsizer.cpp @@ -590,7 +590,7 @@ void wxGridBagSizer::AdjustForOverflow() // just look at the whole item height if ( item->GetPos() == pos && endrow == row ) { - int itemHeight = item->GetSize().GetHeight(); + int itemHeight = item->CalcMin().GetHeight(); rowExtra = wxMin(rowExtra, rowHeight - itemHeight); continue; } @@ -599,7 +599,7 @@ void wxGridBagSizer::AdjustForOverflow() if ( endrow == row ) { // first deduct the portions of the item that are on prior rows - int itemHeight = item->GetSize().GetHeight(); + int itemHeight = item->CalcMin().GetHeight(); for (int r=item->GetPos().GetRow(); rGetPos() == pos && endcol == col ) { - int itemWidth = item->GetSize().GetWidth(); + int itemWidth = item->CalcMin().GetWidth(); colExtra = wxMin(colExtra, colWidth - itemWidth); continue; } if ( endcol == col ) { - int itemWidth = item->GetSize().GetWidth(); + int itemWidth = item->CalcMin().GetWidth(); for (int c=item->GetPos().GetCol(); c