From 6360b8b1a09663bd9e6d196fde6b9da1ac12a374 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Thu, 8 Jan 2009 12:30:10 +0000 Subject: [PATCH] Update allocation of all child widgets after scrolling git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@57904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/win_gtk.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gtk/win_gtk.c b/src/gtk/win_gtk.c index 562ec2f8a9..e55c49863d 100644 --- a/src/gtk/win_gtk.c +++ b/src/gtk/win_gtk.c @@ -691,10 +691,11 @@ typedef struct { static void scroll_adjust(GtkWidget* widget, void* data) { const AdjustData* p = data; + widget->allocation.x += p->dx; + widget->allocation.y += p->dy; + 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.