Invalidate wxGrid best size when the grid is changed.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 19 Oct 2012 10:42:57 +0000 (10:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 19 Oct 2012 10:42:57 +0000 (10:42 +0000)
commita6b40a9aa23c66aee8b9bada956d15fb3c81299c
tree9d01a14d8a003f5ec61ec1511cabceb16708abbd
parent1e9b3eff21f80eb00f3c5639e0ac9a02f816c9a1
Invalidate wxGrid best size when the grid is changed.

Don't keep using the cached best size if rows/columns are added/removed
to/from wxGrid or resized, doing this meant that we always used the first
computed best size which was way too small after adding rows/columns to the
grid.

There could be more places where the grid best size may need to be invalidated
but this should be a good start.

Closes #14761.

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