diff options
author | Timm Bäder <mail@baedert.org> | 2017-05-27 17:31:05 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-07-19 21:27:13 -0400 |
commit | d3beea2c3db7f456882b9197460818cd87a14965 (patch) | |
tree | 6ab02c5c0000aa0b9d40533600d867e3fd9b8fcd /gtk/gtkframe.c | |
parent | bccaeb0e2d8f818c4ffdedf47096fb87c0e6f7dd (diff) | |
download | gtk+-d3beea2c3db7f456882b9197460818cd87a14965.tar.gz |
frame: Fix child allocation
Don't add the parent's allocation from gtk_widget_get_allocation
Diffstat (limited to 'gtk/gtkframe.c')
-rw-r--r-- | gtk/gtkframe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkframe.c b/gtk/gtkframe.c index 2779900114..c2f6cd49ea 100644 --- a/gtk/gtkframe.c +++ b/gtk/gtkframe.c @@ -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); } |