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
This commit is contained in:
Robert Roebling
2009-01-08 12:30:10 +00:00
parent ecea45123d
commit 6360b8b1a0

View File

@@ -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.