Skip to content

Commit 06dda7d

Browse files
ptzieglerazoitl
authored andcommitted
Scale shell for edit-part tip by monitor zoom #860
The size of the shell that is created to show the tool-tip is calculated using the unscaled size of the figure. If the Draw2D-based auto-scaling is enabled, this then causes the shell to be sized as if at 100% zoom. Closes #860
1 parent c51d3c3 commit 06dda7d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

org.eclipse.gef/src/org/eclipse/gef/internal/ui/palette/editparts/EditPartTipHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public void displayToolTipAt(IFigure tip, int tipPosX, int tipPosY) {
7676
// Display the tip
7777
EditPartTipHelper.setHelper(this);
7878
getLightweightSystem().setContents(tip);
79+
tip.translateToAbsolute(tipSize);
7980
setShellBounds(tipPosX, tipPosY, tipSize.width, tipSize.height);
8081
show();
8182
getShell().setCapture(true);

0 commit comments

Comments
 (0)