Skip to content

feat: add immediate option to reflow#485

Merged
korvin89 merged 2 commits intomainfrom
improve-reflow
Mar 15, 2026
Merged

feat: add immediate option to reflow#485
korvin89 merged 2 commits intomainfrom
improve-reflow

Conversation

@korvin89
Copy link
Collaborator

By default, ChartRef.reflow() recalculates dimensions through a 200ms debounce, which works well for cases like window resize. However, when the container size changes programmatically, the layout must be correct before the first visible render — a debounced reflow causes a noticeable visual jump in such cases.

@korvin89 korvin89 requested a review from kuzmadom as a code owner March 13, 2026 20:13
@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@gravity-ui
Copy link

gravity-ui bot commented Mar 13, 2026

Visual Tests Report is ready.
Performance Tests Report is ready.

@korvin89 korvin89 merged commit 71255ca into main Mar 15, 2026
6 checks passed
@korvin89 korvin89 deleted the improve-reflow branch March 15, 2026 10:40
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

Successfully merging this pull request may close these issues.

3 participants