]> git.saurik.com Git - wxWidgets.git/commitdiff
Quick (temporary) fix for some spurious splitter movement
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sat, 18 Apr 2009 10:20:18 +0000 (10:20 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sat, 18 Apr 2009 10:20:18 +0000 (10:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/propgridpagestate.cpp

index 91c82e609c8b0670bca23f9d65bb152bb2ce937d..1861b67ef65685281d2061c1bd8f2999f90eca2f 100644 (file)
@@ -353,9 +353,9 @@ void wxPropertyGridPageState::OnClientWidthChange( int newWidth, int widthChange
             long timeSinceCreation = (::wxGetLocalTimeMillis() - GetGrid()->m_timeCreated).ToLong();
 
             // If too long, don't set splitter
-            if ( timeSinceCreation < 3000 )
+            if ( timeSinceCreation < 250 )
             {
-                if ( m_properties->GetChildCount() || timeSinceCreation > 750 )
+                if ( m_properties->GetChildCount() )
                 {
                     SetSplitterLeft( false );
                 }