Many changes/fixes to wxFlexGridSizer implementation (no API changes):

- fix the problems addressed by the patch 1667343:
 * only distribute extra space between growable items, not all space
 * take hidden items and gaps into account for ALL grow mode layout
 * fix rounding errors by allocating the remaining pixels to the last item(s)
- refactor the code to avoid duplication between row/column cases
- use STL-like wxList methods instead of compatibility ones


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-04-22 19:20:14 +00:00
parent 9c57566224
commit 97800f6618
2 changed files with 180 additions and 154 deletions

View File

@@ -734,8 +734,7 @@ public:
protected:
void AdjustForFlexDirection();
void AdjustForGrowables(const wxSize& sz, const wxSize& minsz,
int nrows, int ncols);
void AdjustForGrowables(const wxSize& sz);
// the heights/widths of all rows/columns
wxArrayInt m_rowHeights,