提交 19dcc2d8 编写于 作者: J Joao Moreno

sash: rename

上级 4f5c928f
......@@ -115,9 +115,9 @@ export class Sash {
}
private linkedEndSashDisposables: IDisposable[] = [];
private _linkedEndSash: Sash[] = [];
get linkedEndSash(): Sash[] { return this._linkedEndSash; }
set linkedEndSash(sashes: Sash[]) {
private _linkedEndSashes: Sash[] = [];
get linkedEndSashes(): Sash[] { return this._linkedEndSashes; }
set linkedEndSashes(sashes: Sash[]) {
this.linkedEndSashDisposables = dispose(this.linkedEndSashDisposables);
if (sashes) {
......@@ -129,7 +129,7 @@ export class Sash {
this.onLinkedEndSashEnablementChange([]);
}
this._linkedEndSash = sashes;
this._linkedEndSashes = sashes;
}
constructor(container: HTMLElement, layoutProvider: ISashLayoutProvider, options: ISashOptions = {}) {
......@@ -156,7 +156,7 @@ export class Sash {
this.layoutProvider = layoutProvider;
this.linkedStartSashes = options.linkedStartSashes || [];
this.linkedEndSash = options.linkedEndSashes || [];
this.linkedEndSashes = options.linkedEndSashes || [];
toggleClass(this.el, 'debug', DEBUG);
}
......@@ -189,13 +189,13 @@ export class Sash {
if (e.offsetY <= 4) {
linkedSashes = this.linkedStartSashes;
} else if (e.offsetY >= this.el.clientHeight - 4) {
linkedSashes = this.linkedEndSash;
linkedSashes = this.linkedEndSashes;
}
} else {
if (e.offsetX <= 4) {
linkedSashes = this.linkedStartSashes;
} else if (e.offsetX >= this.el.clientWidth - 4) {
linkedSashes = this.linkedEndSash;
linkedSashes = this.linkedEndSashes;
}
}
......
......@@ -153,7 +153,7 @@ export class SplitView implements IDisposable {
get linkedEndSashes(): Sash[] { return this._linkedEndSashes; }
set linkedEndSashes(sashes: Sash[]) {
for (const sashItem of this.sashItems) {
sashItem.sash.linkedEndSash = sashes;
sashItem.sash.linkedEndSashes = sashes;
}
this._linkedEndSashes = sashes;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册