]> git.saurik.com Git - wxWidgets.git/commit
Make the initial sash position work in splitter sample.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Oct 2011 19:48:44 +0000 (19:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Oct 2011 19:48:44 +0000 (19:48 +0000)
commit853f4764c074d072153cfe4cb5dc628b73c894cd
tree4729f5d8a69aeb3c935b0ba87c4febf689563f9f
parentc79d40fe1e07a2bbb9aa92b6978a6271b269fbf4
Make the initial sash position work in splitter sample.

The initial splitter size must be set correctly when using gravity with
wxSplitterWindow as otherwise the sash would jump on first resize -- which was
exactly what happened in the splitter sample.

Add a SetSize() call to the sample with the comment explaining why is it
needed and also actually make it stick as the cached last size was not updated
before the splitter was split before.

Closes #9821.

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