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

Content not full-size on first paint #820

Open
jared-jewitt opened this issue Sep 26, 2024 · 0 comments
Open

Content not full-size on first paint #820

jared-jewitt opened this issue Sep 26, 2024 · 0 comments

Comments

@jared-jewitt
Copy link

I've noticed an issue on the most recent version (1.20.2) where the allotment component doesn't seem to initially paint at the full width of its content. See the video below of the storybook where I am repeatedly pressing the "remount" button. This happens quite fast, but if you pay close attention, you'll see the width of the grey container is initially quite small, then quickly "snaps" into its full-size.

It's almost as if JS is being used to calculate the width of the content, (which I believe will always be 0 in first render), then sets the width of the allotment panes based on that. Is this fixable? It begins to become fairly noticeable on views where there is a lot of markup to render.

Screen.Recording.2024-09-26.at.3.26.11.PM.mov
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