Open mikke-alekstra opened 2 years ago
It seems Firefox has made some significant changes to the default sizing and general sizing rules of native widgets - the ListSelect component is just a <select>
tag. We've seen several screenshots failing in Vaadin 8 because of this.
A workaround for your specific test UI is to add a setHeight("100%")
for every ListSelect component you create. If you adjust the size of the GridLayout a bit a setSizeFull()
call would also work.
Since this intersects with my current investigation, I'll see if a solution to this issue presents itself as a side effect.
Hello!
Vaadin GridLayout components overlap eachother with Firefox when GridLayout is updated.
In my example I have a GridLayout(2, 3) that contains Buttons in column 0 and Labels/ListSelects in column 1. Clicking on a Button switches column 1 component from Label to ListSelect or ListSelect to Label.
When a Button is clicked and the component in column 1 changes from Label to ListSelect GridLayout is not expanded enough and ListSelect component overlaps the component below.
Expected behavior (Chrome):![image](https://user-images.githubusercontent.com/27726112/171831945-65044304-9cc7-40b9-8e64-3edbe2d5bc75.png)
Actual behavior (Firefox):![image](https://user-images.githubusercontent.com/27726112/171832495-704b015c-ec69-4b25-a464-6cecd2a68ed5.png)
Tested with Vaadin versions 8.14.3 and 8.15.2 Browser: Latest version of Firefox (Windows & Linux)
Please see my test code below.