From: Vadim Zeitlin Date: Fri, 15 Feb 2002 14:07:49 +0000 (+0000) Subject: dirty fix for the initial splitter position waiting for Vaclav's better one X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f80aa2dee1117406a72c11842977b6a4f94b5a14 dirty fix for the initial splitter position waiting for Vaclav's better one git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/splitter.cpp b/src/generic/splitter.cpp index 6208dfff2f..88ff44a5ab 100644 --- a/src/generic/splitter.cpp +++ b/src/generic/splitter.cpp @@ -697,7 +697,9 @@ int wxSplitterWindow::AdjustSashPosition(int sashPos) const { int window_size = GetWindowSize(); - if ( !window_size ) + // VZ: dirty fix, 20 is the initial window size under wxGTK, this is + // going to be replaced with the correct Vaclav's code soon (FIXME) + if ( window_size <= 20 ) { // don't do anything before the window has a valid size, otherwise we // put the sash to 0 at the very beginning and it doesn't move from