提交 5865cd54 编写于 作者: S SteVen Batten

context menus on activity bar should appear in consistent place

fixes #57658
上级 97b4106f
......@@ -588,8 +588,14 @@ export class CompositeActionItem extends ActivityActionItem {
actions.push(...otherActions);
}
const elementPosition = dom.getDomNodePagePosition(container);
const anchor = {
x: Math.floor(elementPosition.left + (elementPosition.width / 2)),
y: elementPosition.top + elementPosition.height
};
this.contextMenuService.showContextMenu({
getAnchor: () => container,
getAnchor: () => anchor,
getActionsContext: () => this.activity.id,
getActions: () => TPromise.as(actions)
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册