Skip to content

Commit bae2df3

Browse files
committed
Rename property
1 parent 2acd52b commit bae2df3

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
1919
- **Textarea**, **Textfield**: dispatching native `input` and `change` events.
2020
- **Radio**, **Checkbox**, **SingleSelect**, **MultiSelect**: dispatching native `change` event
2121
- **Collapsible**: Displaying the main content using the default slot instead of the named `body` slot.
22-
- **Split Layout**: Renamed `initial-pos` to `initial-position`.
22+
- **Split Layout**: Renamed `initial-pos` to `initial-handle-position`.
2323

2424
### Removed
2525

src/vscode-split-layout/vscode-split-layout.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export class VscodeSplitLayout extends VscElement {
2929
@property({type: Number, reflect: true, attribute: 'handle-size'})
3030
handleSize = 4;
3131

32-
@property({reflect: true, attribute: 'initial-position'})
33-
initialPosition = '50%';
32+
@property({reflect: true, attribute: 'initial-handle-position'})
33+
initialHandlePosition = '50%';
3434

3535
@state()
3636
private _startPaneRight = 0;
@@ -83,7 +83,7 @@ export class VscodeSplitLayout extends VscElement {
8383
this._boundRect = this.getBoundingClientRect();
8484
const {height, width} = this._boundRect;
8585
const maxPos = this.split === 'vertical' ? width : height;
86-
const matches = /(^[0-9.]+)(%{0,1})$/.exec(this.initialPosition);
86+
const matches = /(^[0-9.]+)(%{0,1})$/.exec(this.initialHandlePosition);
8787
let pos = 0;
8888
let numericVal = 0;
8989

0 commit comments

Comments
 (0)