Skip to content

Commit

Permalink
Shrink overlay with custom titlebar (fixes microsoft#18854)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmarti committed Jan 21, 2017
1 parent c4a8ff1 commit b33b824
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,11 @@ export class WelcomeOverlayContribution implements IWorkbenchContribution {
private create(): void {
const container = this.partService.getContainer(Parts.EDITOR_PART);

const offset = this.partService.getTitleBarOffset();
const overlay = $(container.parentElement)
.div({ 'class': 'welcomeOverlay' })
.style({ top: `${offset}px` })
.style({ height: `calc(100% - ${offset}px)` })
.display('none');

overlay.on('click', () => {
Expand Down

0 comments on commit b33b824

Please sign in to comment.