In the XUL window, dialog, pageor vboxitems are displayed from top to bottom, and if you put items in <hbox>, they appear from left to right (except RTL). But sometimes you need a right-aligned object. Then you have several options:
- Simplest version
<hbox pack="end"><button label="right"/></hbox> - If you also need an element on the left, you can divide them into
spacer, for example:<hbox><button label="left"/><spacer flex="1"/><button label="right"/></hbox> - Alternatively, you can also use
<vbox align="end"><button label="right"/></vbox>that works best, if you need item radio, checkbox, labelor descriptionwhich can be wrapped.
source
share