From f80aa2dee1117406a72c11842977b6a4f94b5a14 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 15 Feb 2002 14:07:49 +0000 Subject: [PATCH] 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 --- src/generic/splitter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.50.0