Skip to content

Add min-size attributes to <vscode-split-layout> #552

@dankeboy36

Description

@dankeboy36

Please add first-class support for minimum pane sizes on <vscode-split-layout> to prevent the start or end pane from collapsing to 0 when users drag the sash.

split-layout-min-size.mov

Desired behavior

  • Accept attributes like min-start="240px" or min-end="25%".
  • Clamp sash movement so the start pane never drops below min-start and the end pane never drops below min-end.
  • Same logic when setting handlePosition programmatically.

This would let lock master/detail panes to a reasonable size without hacky event listeners or CSS overrides.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions