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.
Custom layout height gets overridden
Hi,
I'm currently developing a Grid-Addon for vaadin with gridstack.js and everything is working fine so far. I have a Connector, ClientRpc, ServerRpc, SharedState and I'm using the GWT ComplexPanel as widget.
The problem:
Gridstack needs controll over the layout-div and the first-level children of that layout (so it can manage it's positions and size). Gridstack sets the Element.style height of the layout-div manually so that the layout is big enough to fit all children. It seems that sometimes vaadin overrides/removes this style attribute, I assume during the Layout-Phase, and the layout shrinks to 0px.
Is there a way to tell vaadin to not care about the size of a certain component and "just let it handle itself"?
Solution: When Gridstack updates the height, propagate the value to vaadin server-side via RPC and set the value in vaadin.