frame: Don't move border gadget and child down

Setting label-yalign should affect the border gadget, but we need to
compensate for its position by moving the child down or up, depending on
the border gadget's position, so the child never moves.

https://bugzilla.gnome.org/show_bug.cgi?id=762123
This commit is contained in:
Timm Bäder 2016-02-26 14:09:28 +01:00 committed by Matthias Clasen
parent d59c796a9d
commit 870a5b424f

View File

@ -867,7 +867,7 @@ gtk_frame_allocate_border (GtkCssGadget *gadget,
if (priv->label_widget &&
gtk_widget_get_visible (priv->label_widget))
height_extra = priv->label_allocation.height * priv->label_yalign;
height_extra = priv->label_allocation.height * (1 - priv->label_yalign);
else
height_extra = 0;