Skip to content

SplitLayout

Tag name: <vscode-split-layout>

Properties

fixedPane
NamefixedPane
Attributefixed-pane
Type

'start' | 'end' | 'none'

Description

The size of the fixed pane will not change when the component is resized.

handlePosition
NamehandlePosition
Attributehandle-position
Type

string | undefined

Description

Set the handle position programmatically. The value must include a unit, either % or px. If no unit is specified, the value is interpreted as px.

handleSizereflects
NamehandleSize
Attributehandle-size
Type

number

Default

4

Description

Controls the draggable area size in pixels. it is intended to use the value of workbench.sash.size.

initialHandlePositionreflects
NameinitialHandlePosition
Attributeinitial-handle-position
Type

string

Default

'50%'

Description

The handler position will reset to this position when it is double-clicked, or the resetHandlePosition() is called.

resetOnDblClickreflects
NameresetOnDblClick
Attributereset-on-dbl-click
Type

boolean

Default

false

Description

Controls whether the handle position should reset to the value set in the initialHandlePosition when it is double-clicked.

splitreflects
Namesplit
Attributesplit
Type

Orientation

Description

Direction of the divider.

versionreadonly
Nameversion
Type

string

Description

VSCode Elements version

Methods

resetHandlePosition()
NameresetHandlePosition
Description

Sets the handle position to the value specified in the initialHandlePosition property.

CSS Custom Properties

--hover-border
Name--hover-border
Default valuevar(--vscode-sash-hoverBorder)