From: Robert Roebling Date: Thu, 8 Jan 2009 12:29:46 +0000 (+0000) Subject: Update allocation of all child widgets after scrolling X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/eb56793e265b1d9c6c8252d4a9eccbad7e7a34dd?ds=inline Update allocation of all child widgets after scrolling git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/win_gtk.cpp b/src/gtk/win_gtk.cpp index 42ea74144e..7243df8692 100644 --- a/src/gtk/win_gtk.cpp +++ b/src/gtk/win_gtk.cpp @@ -339,10 +339,11 @@ extern "C" { static void scroll_adjust(GtkWidget* widget, void* data) { const AdjustData* p = static_cast(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.