pull/52765/head
Benjamin Pasero 2018-06-19 11:30:05 +02:00
parent ce930c32c7
commit b343035fd5
1 changed files with 10 additions and 7 deletions

View File

@ -343,16 +343,19 @@ class DropOverlay extends Themable {
}
private doPositionOverlay(options: { top: string, left: string, width: string, height: string }): void {
// Container
const offsetHeight = this.getOverlayOffsetHeight();
if (offsetHeight) {
this.container.style.height = `calc(100% - ${offsetHeight}px)`;
} else {
this.container.style.height = '100%';
}
// Overlay
this.overlay.style.top = options.top;
this.overlay.style.left = options.left;
this.overlay.style.width = options.width;
const offsetHeight = this.getOverlayOffsetHeight();
if (offsetHeight) {
this.overlay.style.height = `calc(${options.height} - ${offsetHeight}px)`;
} else {
this.overlay.style.height = options.height;
}
}
private getOverlayOffsetHeight(): number {