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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
component with zero width and height
Hello everyone,
does anyone have an idea, why a component (a Table with two rows), would have the inline style="width: 0px; height: 0px; " in its markup? Most of the child elements also have at least "width: 0px" specified. When does the client engine decide "this component will have zero width and zero height" ? I already tried a lot of things, including wrapping it in different layouts (in the current markup screenshot I had CustomLayout), specify sizes, use undefined size, etc. It's a CustomComponent with a setCompositionRoot(table) at the end of its constructor and it is added into a layout somewhere else. The other things are visible, only this table is collapsed because of the zero dimensions in inline styles...
Thanks for any ideas,
--
Martin
Hi Martin,
It's possible put a code snippet of your component? Maybe the constructor?
Thanks,
Javi
Adding ?debug to the URL of your application will show the debug window.
Click on "Analyse Layout" (or "AL", it depends on version) in that window to have Vaadin check your layouts are OK.
Usually looking at the messages in that window and fixing the errors will fix 0 sized components.