diff --git a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/hyperlink/MultipleHyperlinkPresenter.java b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/hyperlink/MultipleHyperlinkPresenter.java index f768594788d..5c27600f871 100644 --- a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/hyperlink/MultipleHyperlinkPresenter.java +++ b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/hyperlink/MultipleHyperlinkPresenter.java @@ -153,14 +153,6 @@ public LinkListInformationControl(Shell parentShell, MultipleHyperlinkHoverManag fForegroundColor= foregroundColor; fBackgroundColor= backgroundColor; create(); - getShell().addListener(SWT.ZoomChanged, event -> { - final Shell shell= getShell(); - shell.getDisplay().asyncExec(() -> { - if (!shell.isDisposed()) { - shell.setSize(computeSizeHint()); - } - }); - }); } @Override @@ -228,13 +220,6 @@ public Point computeSizeHint() { int width; if (preferedSize.y - scrollBarHeight <= constraints.y) { width= preferedSize.x - scrollBarWidth; - if (Util.isWin32()) { - /* - * compensate rounding issue in windows - * +1 for preferedSize and +1 for scrollBarWidth - */ - width+= 2; - } fTable.getVerticalBar().setVisible(false); } else { width= Math.min(preferedSize.x, constraints.x); @@ -243,13 +228,6 @@ public Point computeSizeHint() { int height; if (preferedSize.x - scrollBarWidth <= constraints.x) { height= preferedSize.y - scrollBarHeight; - if (Util.isWin32()) { - /* - * compensate rounding issue in windows - * +1 for preferedSize and +1 for scrollBarHeight - */ - height+= 2; - } fTable.getHorizontalBar().setVisible(false); } else { height= Math.min(preferedSize.y, constraints.y);