Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout issue with TwinColSelect within initially open Window on the very first load (Firefox) #12602

Open
Ansku opened this issue Jan 17, 2024 · 0 comments

Comments

@Ansku
Copy link
Member

Ansku commented Jan 17, 2024

On Firefox, if the UI has an initially open fixed width Window, and a full width TwinColSelect inside it, the width calculations for the TwinColSelect columns are broken on the first rendering after the development server has been started. The columns won't fit side-by-side within the Window and the right column gets dropped below the left column and out of view. Any interacting with the UI that causes relayouting will fix the issue (columns will become narrower and fit again), and it won't be present again for that browser until the development server gets restarted.

This issue doesn't happen at all if the Window isn't already open when the UI is rendered for the first time, and is consequently unlikely to affect most applications.

My initial theory is that the issue might be caused by the width calculations happening on Firefox before the styles have been applied, and relayouting not getting triggered after they have, but haven't looked into it more closely.

See WindowTwinColSelect test UI before https://github.com/vaadin/framework-es/pull/213 for a reproducible example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant