]> git.saurik.com Git - wxWidgets.git/commitdiff
Update allocation of all child widgets after scrolling
authorRobert Roebling <robert@roebling.de>
Thu, 8 Jan 2009 12:29:46 +0000 (12:29 +0000)
committerRobert Roebling <robert@roebling.de>
Thu, 8 Jan 2009 12:29:46 +0000 (12:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/win_gtk.cpp

index 42ea74144eaed1d65b6bea0afd7d21f707d749f1..7243df8692f4983997cf1522135155fa1c9142a2 100644 (file)
@@ -339,10 +339,11 @@ extern "C" {
 static void scroll_adjust(GtkWidget* widget, void* data)
 {
     const AdjustData* p = static_cast<AdjustData*>(data);
 static void scroll_adjust(GtkWidget* widget, void* data)
 {
     const AdjustData* p = static_cast<AdjustData*>(data);
+    widget->allocation.x += p->dx;
+    widget->allocation.y += p->dy;
+    
     if (widget->window == p->window)
     {
     if (widget->window == p->window)
     {
-        widget->allocation.x += p->dx;
-        widget->allocation.y += p->dy;
         // GtkFrame requires a queue_resize, otherwise parts of
         // the frame newly exposed by the scroll are not drawn.
         // To be safe, do it for all widgets.
         // GtkFrame requires a queue_resize, otherwise parts of
         // the frame newly exposed by the scroll are not drawn.
         // To be safe, do it for all widgets.