提交 c1e60c74 编写于 作者: I isidor

debug actions widget: default position go back to center for discoverability

#2513
上级 a315b7cb
......@@ -114,8 +114,7 @@ export class DebugActionsWidget extends Themable implements IWorkbenchContributi
const mouseClickEvent = new StandardMouseEvent(event);
if (mouseClickEvent.detail === 2) {
// double click on debug bar centers it again #8250
const widgetWidth = this.$el.getHTMLElement().clientWidth;
this.setXCoordinate(window.innerWidth - widgetWidth);
this.setXCoordinate(0.5 * window.innerWidth);
this.storePosition();
}
});
......@@ -174,7 +173,7 @@ export class DebugActionsWidget extends Themable implements IWorkbenchContributi
return;
}
if (x === undefined) {
x = parseFloat(this.storageService.get(DEBUG_ACTIONS_WIDGET_POSITION_KEY, StorageScope.WORKSPACE, '1')) * window.innerWidth;
x = parseFloat(this.storageService.get(DEBUG_ACTIONS_WIDGET_POSITION_KEY, StorageScope.WORKSPACE, '0.5')) * window.innerWidth;
}
const widgetWidth = this.$el.getHTMLElement().clientWidth;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册