]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed post-expand/collapse rendering
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 11 Oct 2009 08:35:48 +0000 (08:35 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 11 Oct 2009 08:35:48 +0000 (08:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/propgrid.cpp

index 858e15085ccdbbfec931aa9b9f200806a49953b5..6e28d6b32b6a6d49cef6081ec0be079efbe8d38d 100644 (file)
@@ -4091,16 +4091,7 @@ bool wxPropertyGrid::DoCollapse( wxPGProperty* p, bool sendEvents )
             SendEvent( wxEVT_PG_ITEM_COLLAPSED, p );
 
         RecalculateVirtualSize();
-
-        // Redraw etc. only if collapsed was visible.
-        if (pwc->IsVisible() &&
-            !m_frozen &&
-            ( !pwc->IsCategory() || !(m_windowStyle & wxPG_HIDE_CATEGORIES) ) )
-        {
-            // When item is collapsed so that scrollbar would move,
-            // graphics mess is about (unless we redraw everything).
-            Refresh();
-        }
+        Refresh();
     }
 
     // Clear dont-center-splitter flag if it wasn't set
@@ -4129,19 +4120,7 @@ bool wxPropertyGrid::DoExpand( wxPGProperty* p, bool sendEvents )
             SendEvent( wxEVT_PG_ITEM_EXPANDED, p );
 
         RecalculateVirtualSize();
-
-        // Redraw etc. only if expanded was visible.
-        if ( pwc->IsVisible() && !m_frozen &&
-             ( !pwc->IsCategory() || !(m_windowStyle & wxPG_HIDE_CATEGORIES) )
-           )
-        {
-            // Redraw
-        #if wxPG_REFRESH_CONTROLS_AFTER_REPAINT
-            Refresh();
-        #else
-            DrawItems(pwc, NULL);
-        #endif
-        }
+        Refresh();
     }
 
     // Clear dont-center-splitter flag if it wasn't set