fix for scrolling wxSpinCtrl, broken by fix for scrolling wxStaticBox (rev 48550)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -696,10 +696,7 @@ gtk_pizza_scroll (GtkPizza *pizza, gint dx, gint dy)
|
|||||||
for (tmp_list = pizza->children; tmp_list; tmp_list = tmp_list->next)
|
for (tmp_list = pizza->children; tmp_list; tmp_list = tmp_list->next)
|
||||||
{
|
{
|
||||||
GtkPizzaChild *child = tmp_list->data;
|
GtkPizzaChild *child = tmp_list->data;
|
||||||
GtkAllocation alloc = child->widget->allocation;
|
gtk_widget_queue_resize(child->widget);
|
||||||
alloc.x -= dx;
|
|
||||||
alloc.y -= dy;
|
|
||||||
gtk_widget_size_allocate( child->widget, &alloc );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user