X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6a079bc1f092f865c9fd5ef37f207ab5e525c1b1..2190f6aa153416d1c225532bb026df98b3e273ad:/src/common/gbsizer.cpp diff --git a/src/common/gbsizer.cpp b/src/common/gbsizer.cpp index 7d1faa5fe4..bb4f660670 100644 --- a/src/common/gbsizer.cpp +++ b/src/common/gbsizer.cpp @@ -572,15 +572,15 @@ void wxGridBagSizer::AdjustForOverflow() { int row, col; - for (row=0; rowIsShown() ) continue; int endrow, endcol; @@ -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(); rIsShown() ) continue; int endrow, endcol; @@ -631,14 +631,14 @@ void wxGridBagSizer::AdjustForOverflow() if ( item->GetPos() == 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