Your spacer <div>
is eating up all the space. Remove this and then set pack
of the <hbox>
to end
.
This gives you something like that:
...
</menubar>
<hbox vflex="1" hflex="1" align="center" pack="end">
<label id="B"/>
...
As a general note I find it quite helpful to use Firefox/Firebug
for debugging those layout issues. So one can easily see which resulting DOM
is generated by the ZUL
code.