提交 a7f869b3 编写于 作者: I isidor

debug: smoothe out the d&d for action bar

上级 a59654e9
......@@ -105,7 +105,7 @@ export class DebugActionsWidget implements wbext.IWorkbenchContribution {
private setXCoordinate(x: number): void {
const halfWidgetWidth = this.$el.getHTMLElement().clientWidth / 2;
x = x + halfWidgetWidth - 12; // take into account half the size of the widget
x = x + halfWidgetWidth - 16; // take into account half the size of the widget
x = Math.max(148, x); // do not allow the widget to overflow on the left
x = Math.min(x, window.innerWidth - halfWidgetWidth); // do not allow the widget to overflow on the right
this.$el.style('left', `${x}px`);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册