Skip to content

Scheduler - Fix incorrect appointment layout on initial Storybook render#33309

Merged
aleksei-semikozov merged 1 commit intoDevExpress:26_1from
aleksei-semikozov:fix/storybook-scheduler-initial-render-3817
Apr 16, 2026
Merged

Scheduler - Fix incorrect appointment layout on initial Storybook render#33309
aleksei-semikozov merged 1 commit intoDevExpress:26_1from
aleksei-semikozov:fix/storybook-scheduler-initial-render-3817

Conversation

@aleksei-semikozov
Copy link
Copy Markdown
Contributor

@aleksei-semikozov aleksei-semikozov commented Apr 16, 2026

Defer story rendering until the DevExtreme CSS stylesheet has loaded. Without this, widgets measure cell dimensions before styles are applied and produce incorrect layout.

@aleksei-semikozov aleksei-semikozov self-assigned this Apr 16, 2026
@aleksei-semikozov aleksei-semikozov force-pushed the fix/storybook-scheduler-initial-render-3817 branch from 47183cc to 410af29 Compare April 16, 2026 11:25
@aleksei-semikozov aleksei-semikozov marked this pull request as ready for review April 16, 2026 11:27
Copilot AI review requested due to automatic review settings April 16, 2026 11:27
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the React Storybook theme decorator to avoid rendering stories before the DevExtreme theme stylesheet has finished loading, addressing incorrect initial layout (notably for Scheduler) on first render.

Changes:

  • Add cssLoaded state to track theme CSS load completion.
  • Delay <Story /> rendering until the stylesheet onLoad/onError fires.

Comment thread apps/react-storybook/.storybook/themes/themes.tsx
@aleksei-semikozov aleksei-semikozov force-pushed the fix/storybook-scheduler-initial-render-3817 branch from fd5bb86 to f526cca Compare April 16, 2026 11:35
@aleksei-semikozov aleksei-semikozov merged commit 8105814 into DevExpress:26_1 Apr 16, 2026
130 of 133 checks passed
@aleksei-semikozov aleksei-semikozov deleted the fix/storybook-scheduler-initial-render-3817 branch April 16, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants