Account for cells spanning multiple grid cells better when autosizing.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 Dec 2009 19:40:46 +0000 (19:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 Dec 2009 19:40:46 +0000 (19:40 +0000)
commit774f6b312aaec96adf2884539c91b7c6ea43bc03
tree820b72d85c0c6e9177344b88ac44020061528273
parentea99e8e31e4a66341a76d6aec692eead55c09b37
Account for cells spanning multiple grid cells better when autosizing.

The total size of a multi-span cell was accounted for each row/column it
covered, resulting in too much space being allocated to them.

Only take into account the average size of each row/column computed by
dividing the total cell size by number of rows/columns it occupies to fix
this.

Closes #11498.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63001 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/generic/grid.cpp