mirror of
https://github.com/mathuo/dockview
synced 2025-01-22 17:35:57 +00:00
chore: internals renaming
This commit is contained in:
parent
e28c76626f
commit
e1849f72a5
@ -131,12 +131,12 @@ export class BranchNode extends CompositeDisposable implements IView {
|
|||||||
return LayoutPriority.Normal;
|
return LayoutPriority.Normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
get locked(): boolean {
|
get disabled(): boolean {
|
||||||
return this.splitview.locked;
|
return this.splitview.disabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
set locked(value: boolean) {
|
set disabled(value: boolean) {
|
||||||
this.splitview.locked = value;
|
this.splitview.disabled = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
@ -187,7 +187,7 @@ export class BranchNode extends CompositeDisposable implements IView {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
this.locked = disabled;
|
this.disabled = disabled;
|
||||||
|
|
||||||
this.addDisposables(
|
this.addDisposables(
|
||||||
this._onDidChange,
|
this._onDidChange,
|
||||||
|
@ -42,7 +42,7 @@ function flipNode<T extends Node>(
|
|||||||
node.styles,
|
node.styles,
|
||||||
size,
|
size,
|
||||||
orthogonalSize,
|
orthogonalSize,
|
||||||
node.locked
|
node.disabled
|
||||||
);
|
);
|
||||||
|
|
||||||
let totalSize = 0;
|
let totalSize = 0;
|
||||||
@ -350,7 +350,7 @@ export class Gridview implements IDisposable {
|
|||||||
const node = branch.pop();
|
const node = branch.pop();
|
||||||
|
|
||||||
if (node instanceof BranchNode) {
|
if (node instanceof BranchNode) {
|
||||||
node.locked = value;
|
node.disabled = value;
|
||||||
branch.push(...node.children);
|
branch.push(...node.children);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
&.dv-splitview-locked {
|
&.dv-splitview-disabled {
|
||||||
& > .sash-container > .sash {
|
& > .sash-container > .sash {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
@ -201,14 +201,14 @@ export class Splitview {
|
|||||||
this.updateSashEnablement();
|
this.updateSashEnablement();
|
||||||
}
|
}
|
||||||
|
|
||||||
get locked(): boolean {
|
get disabled(): boolean {
|
||||||
return this._disabled;
|
return this._disabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
set locked(value: boolean) {
|
set disabled(value: boolean) {
|
||||||
this._disabled = value;
|
this._disabled = value;
|
||||||
|
|
||||||
toggleClass(this.element, 'dv-splitview-locked', value);
|
toggleClass(this.element, 'dv-splitview-disabled', value);
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
|
Loading…
Reference in New Issue
Block a user