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

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

GridLayoutConnector has been layouted 3 times

Mar Goli
5 years ago Sep 06, 2016 3:34pm
Olli Tietäväinen
5 years ago Sep 07, 2016 6:22am


The warning message comes from Vaadin LayoutManager, which does the layouting of components inside Vaadin-controlled Layouts (like VerticalLayout or Gridlayout, but not CSSLayout). It works, roughly speaking, so that it runs an infinite loop where it applies sizes to the top level it controls, which then cascades changes down the component hierarchy for each child widget. If everything goes smoothly, it can exit the loop, but it can be that as a result of the first round, there's a need to keep doing the layouting loop again to fit all widgets correctly inside their parents. 

In your case, the GridLayout has been layouted 3 times, but eventually the layouting loop has terminated successfully. Since 3 is the smallest number where you get that message, I wouldn't worry about it too much. You can use the "Check layouts for potential problems" in the debug window to analyze your UI just in case. If you'd get much larger numbers than that, I would suspect that some of the widgets inside the grid might be handling resize events incorrectly and thus the layouting loop wouldn't be able to find a satisfactory result.

The number 17 is the connector id of the GridLayoutConnector in your UI, which might be helpful if you're trying to pinpoint which layout exactly is causing problems. 

Hope this helps,

Mar Goli
5 years ago Sep 07, 2016 11:36am