提交 82d1cdd4 编写于 作者: S Serge Rider

Panel menu fix

上级 5156f27b
......@@ -262,7 +262,7 @@ public class ContentPanelEditor extends BaseValueEditor<Control> {
ToolItem toolItem = (ToolItem) event.widget;
Menu menu = createMenu(toolItem);
Rectangle bounds = toolItem.getBounds();
Point point = toolItem.getControl().toDisplay(bounds.x, bounds.y + bounds.height);
Point point = toolItem.getParent().toDisplay(bounds.x, bounds.y + bounds.height);
menu.setLocation(point.x, point.y);
menu.setVisible(true);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册