I'm having some issues with Hbox and Vbox layout. I know they behave somewhat like DIVs, but I just can't alignt them the way I want.
I have tried to add DIVs, separators, pack, align, width, every kind of workaround, but can't seem to make it work.
This is the north of my layout, and I just want it in two pieces: The left one, that contains the most part of the components, it's all align to the left with some spacement
And the right one, that will just have some exporting options, and it's all centralized.
I'd post an image, but I don't have enought rep.
Here is the part of code I'm trying to make work:
<hbox width="100%">
<vbox width="80%">
<hbox>
<label value="${labels.processos}" />
<separator spacing="20px" />
<combobox id="cmbNovo" model="@load(vm.loadCombobox)"
readonly="true">
<comboitem label="@load(each)" />
</combobox>
<separator spacing="20px" />
<a onClick="@command('editar', status=each)"
label="${labels.alterarvisao}"/>
<separator spacing="20px" />
<button id="novaVisao" label="${labels.novavisao}"
onClick="@command('novo')" />
<separator spacing="20px" />
</hbox>
<separator height="10px" />
<button id="novo" label="${labels.message.novoprocesso}"
onClick="@command('novo')" />
<separator height="10px" />
</vbox>
<separator spacing="100%" />
<vbox pack="end" align="end" width="20%" >
<hbox >
<label value="${labels.common.exportar}" />
</hbox>
<hbox>
<label value="${labels.common.exportar}" />
<a onClick="@command('editar', status=each)"
label="${labels.common.pdf}"/>
<a onClick="@command('editar', status=each)"
label="${labels.common.xls}"/>
</hbox>
<hbox>
<label value="${labels.common.exportar}" />
<a onClick="@command('editar', status=each)"
label="${labels.common.pdf}"/>
<a onClick="@command('editar', status=each)"
label="${labels.common.xls}"/>
</hbox>
</vbox>
</hbox>
It's pretty simple. I need one div to the left, text aligned to the left aswell And another one to the right, with centralized text. Both on the sime horizontal lign. I just can't make it happend.
Is this what you want?