I need to set the horizontal alignment for the form items. I’ve tried to perform this in two ways:[ul][li]invoking the method setAlign() on the form (inherited from Canvas)[/li][li]invoking the method setAlign() on the layout containing the form[/li][/ul]but nothing changed.
Can you provide some more details on the exact layout of your form and what you want. The form items are within cells, so the number of cells per row, spanning/no spanning, alignment of the individial cells all impact layout. If you have some minimal code for your form and a description of what you want, probably can be of more help.
Maybe a screen shot would help but so your form is like Left aligned or something and you want it to be centered or something? Couple things here, the alignment will relate to the parent, do you set the VLayout size at all? Try setting the VLayout to 100% width and setLayoutAlign on the form. Also the <div> can affect it if you set a specific width for it as well. But I may be misunderstanding your intent too which is why a screenshot would help.
mainVL.setAlign(Alignment.RIGHT); aligns vertically for some reason… Can you explain it? I’m not using VerticalAlignment, I’m using Alignment here, so it should be horizontal as I see…
miniItem1.setAlign(Alignment.RIGHT); makes very strange alignment:
dateForm.setLayoutAlign(Alignment.RIGHT); helped to align whole form, yes, it can be an unique solution here
But what to do with these unexpected alignments? How to align VerticalLayout’s content horizontally and how to layout DynamicForm’s content?