Is there a way to center the items in the last row, instead of having them left aligned?
Depending on what you’re trying to do, you might want to have a look at Adw.WrapBox
, which is going to land in the next libadwaita release. By using homogeneous-width elements and changing the justify
and justify-last-line
properties, I think you’d be able to achieve the desired effect.
Adw.WrapBox
with align 0.5 should work, but I don’t want to wait for the next libadwaita release
I don’t really need FlowBox. I get a number of same sized elements runtime and I want to display them in a grid, but the last row may have less items, so I want to center them. I will probably create a Box and add a Box for every line with the children centered. But I was wondering if there isn’t a better way.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.