Skip to content

feat(splitter): SplitPane.Default, reset by double-click - #604

Merged
tannevaled merged 1 commit into
mainfrom
feat/splitter-default
Nov 20, 2026
Merged

tannevaled merged 1 commit into
mainfrom
feat/splitter-default

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

What

SplitPane.Default: a double-click on a divider that has no collapsible fixed pane to toggle puts the two panes around it back to their Default size (fixed pane) or weight (flexible pane). A pane without a Default keeps its value. OnResized reports only the panes whose size moved, so a reset at the default reports nothing. A divider next to a collapsible pane keeps collapsing/restoring it as before.

Why

agentscope's side panel splits Sessions over Details with a vertical Splitter and wants "double-click resets to 55 / 45". Min sizes, OnResized (what the person changed, not a window resize) and the resize cursor already exist.

Tests

Flexible pair reset (and idempotent at the default), fixed pane reset with a neighbour without a Default, collapsible pane still collapses. reset and press at 100 %.

🤖 Generated with Claude Code

…vider with nothing to collapse

A divider next to a collapsible fixed pane keeps toggling it. Any other divider
now puts the two panes around it back to their Default size (fixed) or weight
(flexible), laying out once and reporting through OnResized only what moved.
Needed by agentscope's Sessions/Details split (55 / 45).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit d107b07 into main Nov 20, 2026
1 check passed
@tannevaled
tannevaled deleted the feat/splitter-default branch November 20, 2026 17:48
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.

1 participant