frame: Fix child allocation

Don't add the parent's allocation from gtk_widget_get_allocation
This commit is contained in:
Timm Bäder 2017-05-27 17:31:05 +02:00 committed by Matthias Clasen
parent bccaeb0e2d
commit d3beea2c3d

View File

@ -695,8 +695,8 @@ gtk_frame_real_compute_child_allocation (GtkFrame *frame,
else
height = 0;
child_allocation->x = allocation.x;
child_allocation->y = allocation.y + height;
child_allocation->x = 0;
child_allocation->y = height;
child_allocation->width = MAX (1, allocation.width);
child_allocation->height = MAX (1, allocation.height - height);
}