提交 5a13f08c 编写于 作者: B Benjamin Pasero

title - fix for debug widget

上级 4b463830
...@@ -555,7 +555,7 @@ export class QuickOpenController extends WorkbenchComponent implements IQuickOpe ...@@ -555,7 +555,7 @@ export class QuickOpenController extends WorkbenchComponent implements IQuickOpe
} }
private positionQuickOpenWidget(): void { private positionQuickOpenWidget(): void {
let titlebarOffset = this.partService.getTitleBarOffset(); const titlebarOffset = this.partService.getTitleBarOffset();
if (this.quickOpenWidget) { if (this.quickOpenWidget) {
this.quickOpenWidget.getElement().style('top', `${titlebarOffset}px`); this.quickOpenWidget.getElement().style('top', `${titlebarOffset}px`);
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
import * as lifecycle from 'vs/base/common/lifecycle'; import * as lifecycle from 'vs/base/common/lifecycle';
import * as errors from 'vs/base/common/errors'; import * as errors from 'vs/base/common/errors';
import * as strings from 'vs/base/common/strings'; import * as strings from 'vs/base/common/strings';
import * as browser from 'vs/base/browser/browser';
import severity from 'vs/base/common/severity'; import severity from 'vs/base/common/severity';
import * as builder from 'vs/base/browser/builder'; import * as builder from 'vs/base/browser/builder';
import * as dom from 'vs/base/browser/dom'; import * as dom from 'vs/base/browser/dom';
...@@ -51,7 +52,7 @@ export class DebugActionsWidget implements IWorkbenchContribution { ...@@ -51,7 +52,7 @@ export class DebugActionsWidget implements IWorkbenchContribution {
@IPartService private partService: IPartService, @IPartService private partService: IPartService,
@IStorageService private storageService: IStorageService @IStorageService private storageService: IStorageService
) { ) {
this.$el = $().div().addClass('debug-actions-widget'); this.$el = $().div().addClass('debug-actions-widget').style('top', `${partService.getTitleBarOffset()}px`);
this.dragArea = $().div().addClass('drag-area'); this.dragArea = $().div().addClass('drag-area');
this.$el.append(this.dragArea); this.$el.append(this.dragArea);
...@@ -124,6 +125,15 @@ export class DebugActionsWidget implements IWorkbenchContribution { ...@@ -124,6 +125,15 @@ export class DebugActionsWidget implements IWorkbenchContribution {
$window.off('mousemove'); $window.off('mousemove');
}); });
}); });
this.toDispose.push(this.partService.onTitleBarVisibilityChange(() => this.positionDebugWidget()));
this.toDispose.push(browser.onDidChangeZoomLevel(() => this.positionDebugWidget()));
}
private positionDebugWidget(): void {
const titlebarOffset = this.partService.getTitleBarOffset();
$(this.$el).style('top', `${titlebarOffset}px`);
} }
private setXCoordinate(x?: number): void { private setXCoordinate(x?: number): void {
......
...@@ -140,14 +140,6 @@ ...@@ -140,14 +140,6 @@
padding-left: 7px; padding-left: 7px;
} }
.titlebar-style-custom .monaco-workbench.fullscreen .debug-actions-widget {
top: 0;
}
.titlebar-style-custom .monaco-workbench .debug-actions-widget {
top: 22px; /* push down debug toolbar when we have a custom title bar */
}
.monaco-workbench .debug-actions-widget .monaco-action-bar .action-item.select-container { .monaco-workbench .debug-actions-widget .monaco-action-bar .action-item.select-container {
margin-right: 7px; margin-right: 7px;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册