What is the proper way to distribute hbox children to all available x_size.
I would like to have the following:
border element1 spacing element2 spacing element3 border
with spacing calculated automatically.
If I simply use:
Code: Select all
hbox:
xfill Trueborder element1 spacing element2 spacing element3 spacing border
adding
Code: Select all
xalign 0.5I can manually specify the spacing and use xalign to achieve the desirable effect:
Code: Select all
hbox:
xalign 0.5
spacing ((x_size-num_of_elements*element_x_size)/(num_of_elements-1)) I was suggested to add null width at the start to make it visually centered:
Code: Select all
hbox:
xfill True
null width 0
#other elementsHowever, is it a simle way to achieve the desirable pattern with variable number of elements:
border element1 spacing element2 spacing element3 border