Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Field alignment issue

Jason Caldwell
6 years ago Feb 23, 2016 7:57pm
Jonas Ohlsson
6 years ago Feb 23, 2016 9:05pm

Try something like this:
HorzontalLayout h = new HorizontalLayout(city,state,zip);
h.setWidth("100%");
h.setExpandRatio(city,1);
setContent(h);
 

Jason Caldwell
6 years ago Feb 23, 2016 9:25pm