Skip to content

Splitter: save initial size for collapsed panels on initialization#33059

Merged
dmlvr merged 5 commits into
DevExpress:26_1from
EugeniyKiyashko:26_1_splitter_collapsed_cache
Mar 30, 2026
Merged

Splitter: save initial size for collapsed panels on initialization#33059
dmlvr merged 5 commits into
DevExpress:26_1from
EugeniyKiyashko:26_1_splitter_collapsed_cache

Conversation

@EugeniyKiyashko
Copy link
Copy Markdown
Contributor

No description provided.

@EugeniyKiyashko EugeniyKiyashko self-assigned this Mar 26, 2026
@EugeniyKiyashko EugeniyKiyashko requested a review from a team as a code owner March 26, 2026 15:24
Copilot AI review requested due to automatic review settings March 26, 2026 15:24
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 internal Splitter sizing logic so panes that start collapsed (or hidden) with an explicit size remember that initial size and restore it when expanded/shown, rather than falling back to the default “expand to half” behavior.

Changes:

  • Added initialization-time caching of pane sizes/directions for initially collapsed or invisible panes that have a defined size.
  • Ensured pane size caches are reset early in _initMarkup and initialized after computing the initial layout.
  • Added QUnit coverage for expand/show behavior when collapsed/visible is set on initialization.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
packages/devextreme/testing/tests/DevExpress.ui.widgets/splitter.tests.js Adds new pane sizing tests verifying restoration to user-specified sizes for initially collapsed/hidden panes.
packages/devextreme/js/__internal/ui/splitter/splitter.ts Introduces _initPanesCacheSize() and wires it into initial layout computation to preserve initial sizes for collapsed/hidden panes.

Comment thread packages/devextreme/js/__internal/ui/splitter/splitter.ts
Comment thread packages/devextreme/testing/tests/DevExpress.ui.widgets/splitter.tests.js Outdated
Copilot AI review requested due to automatic review settings March 27, 2026 13:11
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

Comment thread packages/devextreme/testing/tests/DevExpress.ui.widgets/splitter.tests.js Outdated
Comment thread packages/devextreme/testing/tests/DevExpress.ui.widgets/splitter.tests.js Outdated
Comment thread packages/devextreme/testing/tests/DevExpress.ui.widgets/splitter.tests.js Outdated
Comment thread packages/devextreme/testing/tests/DevExpress.ui.widgets/splitter.tests.js Outdated
Comment thread packages/devextreme/testing/tests/DevExpress.ui.widgets/splitter.tests.js Outdated
Copilot AI review requested due to automatic review settings March 30, 2026 06:21
@EugeniyKiyashko EugeniyKiyashko force-pushed the 26_1_splitter_collapsed_cache branch from 1615485 to 1988d3c Compare March 30, 2026 06:24
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@dmlvr dmlvr merged commit 451e676 into DevExpress:26_1 Mar 30, 2026
106 of 107 checks passed
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