mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 07:15:54 +01:00
Fixes #20935: Add dragging to the minimap slider
This commit is contained in:
@@ -82,6 +82,10 @@ export abstract class FastDomNode<T extends HTMLElement> {
|
||||
this._domNode.style.height = this._height + 'px';
|
||||
}
|
||||
|
||||
public getHeight(): number {
|
||||
return this._height;
|
||||
}
|
||||
|
||||
public unsetHeight(): void {
|
||||
if (this._height === -1) {
|
||||
return;
|
||||
@@ -98,6 +102,10 @@ export abstract class FastDomNode<T extends HTMLElement> {
|
||||
this._domNode.style.top = this._top + 'px';
|
||||
}
|
||||
|
||||
public getTop(): number {
|
||||
return this._top;
|
||||
}
|
||||
|
||||
public unsetTop(): void {
|
||||
if (this._top === -1) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user