forked from AuroraMiddleware/gtk
stack: Fix the slide animation if the child has a non-zero allocation position
This can happen if the child has a margin, for instance.
This commit is contained in:
parent
3e836dd9fc
commit
4f7170fd56
@ -1612,6 +1612,9 @@ gtk_stack_draw_slide (GtkWidget *widget,
|
||||
break;
|
||||
}
|
||||
|
||||
x += priv->last_visible_surface_allocation.x;
|
||||
y += priv->last_visible_surface_allocation.y;
|
||||
|
||||
cairo_save (cr);
|
||||
cairo_set_source_surface (cr, priv->last_visible_surface, x, y);
|
||||
cairo_paint (cr);
|
||||
|
Loading…
Reference in New Issue
Block a user