mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-16 13:40:31 +00:00
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:
parent
d59c796a9d
commit
870a5b424f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user