GNOME Bugzilla – Bug 760668
box gadget: Implement cross-axis alignment
Last modified: 2016-01-15 14:46:50 UTC
So far, the box gadget is always allocating all children the full size in the cross axis. This behavior corresponds to the align-items: stretch behavior in https://www.w3.org/TR/css-flexbox-1/#align-items-property This commit implements the other modes described there. While widgets have halign/valign properties that we can use for this, the API for inserting gadgets has to change to take an extra align parameter.
Created attachment 319093 [details] [review] box gadget: Implement cross-axis alignment
Created attachment 319094 [details] [review] Update callers to box gadget api change Add a GTK_ALIGN_FILL argument in all the places where gadgets are added to a box gadget, since that corresponds to the previous behavior.
Created attachment 319096 [details] demo
Created attachment 319098 [details] [review] the patch that was used for the screenshot