Repository navigation
feat(splitter): SplitPane.Default, reset by double-click - #604
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 theirDefaultsize (fixed pane) or weight (flexible pane). A pane without aDefaultkeeps its value.OnResizedreports 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.
resetandpressat 100 %.🤖 Generated with Claude Code