Fix the check for second window becoming too small in wxSplitterWindow.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Oct 2011 19:48:48 +0000 (19:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Oct 2011 19:48:48 +0000 (19:48 +0000)
commit1b5dfa53aa2c3ddf779332ca5b1b5bd29f725a84
tree341dbfed4fbf85de6be0304572c77fce4b1c8e67
parent853f4764c074d072153cfe4cb5dc628b73c894cd
Fix the check for second window becoming too small in wxSplitterWindow.

There was a strange check for the second pane size in OnSize() which hardcoded
5 pixels as minimal pane size in the check and 40 pixels as the minimal size
to set. This resulted in strange behaviour when the second pane size would
decrease to 6 pixels smoothly and then jump back to 40 pixels when the
splitter window was resized and also was ugly at the code level.

Get rid of this code and simply call AdjustSashPosition() to ensure that the
sash position remains valid as the splitter is resized.

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