Zooming of adornment used as Context menu


Can we zoom the adornment applied to context menu of a panel with the same scale as of diagram? I want to zoom (change the scale) of adornment as well along with nodes present on canvas diagram.


Override ContextMenuTool.positionContextMenu to set the context menu’s scale to 1.

ContextMenuTool.showContextMenu, which calls that method, sets its scale to 1 / diagram.scale beforehand, in order to maintain a uniform size context menu no matter what the Diagram.scale is.