]> git.saurik.com Git - wxWidgets.git/commitdiff
dirty fix for the initial splitter position waiting for Vaclav's better one
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 15 Feb 2002 14:07:49 +0000 (14:07 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 15 Feb 2002 14:07:49 +0000 (14:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/splitter.cpp

index 6208dfff2f242b90f4062fd4cca08ee49231f94e..88ff44a5ab898d6f0577937c76f7323ca775bd6d 100644 (file)
@@ -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