Skip to content

Commit

Permalink
fix #52095
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Jun 19, 2018
1 parent ce930c3 commit b343035
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/vs/workbench/browser/parts/editor/editorDropTarget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,16 +343,19 @@ class DropOverlay extends Themable {
}

private doPositionOverlay(options: { top: string, left: string, width: string, height: string }): void {
this.overlay.style.top = options.top;
this.overlay.style.left = options.left;
this.overlay.style.width = options.width;

// Container
const offsetHeight = this.getOverlayOffsetHeight();
if (offsetHeight) {
this.overlay.style.height = `calc(${options.height} - ${offsetHeight}px)`;
this.container.style.height = `calc(100% - ${offsetHeight}px)`;
} else {
this.overlay.style.height = options.height;
this.container.style.height = '100%';
}

// Overlay
this.overlay.style.top = options.top;
this.overlay.style.left = options.left;
this.overlay.style.width = options.width;
}

private getOverlayOffsetHeight(): number {
Expand Down

0 comments on commit b343035

Please sign in to comment.