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.

ComboBox changes size

neko me
10 years ago Dec 22, 2011 10:16pm

I have combobox in a form. And I have Edit/Cancel buttons for a form.
Cancel sets form setReadOnly(true)
Edit sets form setReadOnly(false)

so whenever I alternate Edit/Cancel/Edit/Cancel/Edit/Cancel ComboBox which form contains gets larger in length. I doubt this could be some layout problem because I have TextFields in same form and their size stays same. Even if ComboBox reaches parent layout boundaries it keeps growing.

Is this a bug or am I doing something wrong ? I want ComboBox to stays same size (obviously), and not get any wider or narrower.

btw, since this is my first post I would like to say thanks for this great framework which reduced my workload a lot. Great job.

Last updated on Dec, 23rd 2011
Jens Jansson
10 years ago Dec 23, 2011 8:06am

Sounds like a bug. Can you do a separate testcase, just a one class vaadin project with nothing else than a ComboBox and a button that toggles setReadOnly. If you get it reproduced there then you could create a new ticket at dev.vaadin.com and paste the source code for your testcase.

Henri Sara
10 years ago Dec 23, 2011 8:40am

neko me: so whenever I alternate Edit/Cancel/Edit/Cancel/Edit/Cancel ComboBox which form contains gets larger in length.

This has already been reported as issue #5833.

neko me
10 years ago Dec 24, 2011 12:16pm

Thanks, I was reading some threads about this and thought this could be related with improper layouting and run ?debug and AL - analyze layout. What I get is unknown height for some layouts so I put .setHeight("100%") for every layout I created but in debugging it lists some layouts I didn't create. Maybe this is related to combobox problem maybe not.

Is there any workaround with this combobox problem?

Last updated on Dec, 24th 2011
Ovidiu ...
9 years ago Jun 14, 2012 2:07pm