Fixes #20935: Add dragging to the minimap slider

This commit is contained in:
Alex Dima
2017-02-24 11:53:00 +01:00
parent e36134faa1
commit 639558ef24
2 changed files with 81 additions and 1 deletions

View File

@@ -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;