Very strange behavior occurs with our Vaadin Liferay portlet appearance in Firefox. I have a portlet which contains a horizontal layout with 2 labels inside. The portlet has setSpacing(true).
When I set setSpacing(true), when the html is generated, Vaadin inserts a spacing between 2 labels (
). Problem is that when I click on any link in my webpage, and the page is going to redirect by that link, the spacer div, which separates 2 labels, magically disappears. But when the page is redirected to a new link, these spacers are visible again.
This disappearance during the navigation makes an effect of “dancing” layout when the spacer is removed. I’ve attached 2 images:
spacing_png shows the initial appearance of the portlet
spacing_result.png shows the appearance, when I click a link on the page (the spacer disappears).
Does anyone have suggestions what might be the problem and which way to look for?
Thanks in advance.
Thanks for degugging that for me. I’ve seen that behavior many times (every time you reload a page), but never thought more about the actual cause of it.
But as a simple comment block will suffice, I guess that could be added to the core. You would need to modify the
Slot.setSpacing(boolean) method on client side code.