Add missing refactor
This commit is contained in:
+5
-1
@@ -105,10 +105,14 @@ class TpVSplitter extends LitElement {
|
||||
document.body.style['userSelect'] = '';
|
||||
}
|
||||
|
||||
setWidth(width) {
|
||||
setLeftWidth(width) {
|
||||
this.style.gridTemplateColumns = `${width} var(--tp-splitter-width, 5px) 1fr`;
|
||||
}
|
||||
|
||||
setRightWidth(width) {
|
||||
this.style.gridTemplateColumns = `1fr var(--tp-splitter-width, 5px) ${width}`;
|
||||
}
|
||||
|
||||
_enableDrag(e) {
|
||||
e.preventDefault();
|
||||
if (this.splitter && e.pointerId != null) {
|
||||
|
||||
Reference in New Issue
Block a user