Skip to content

Commit 8a90d49

Browse files
ShahzaibIbrahimakoch-yatta
authored andcommitted
Revert "Workaround for unexpected scrollbars in MultipleHyperlink"
The workaround was introduced to resolved the unexpected scrollbars in MultiHyperLinks but later it was fixed as a result of fix in eclipse-platform/eclipse.platform.swt#2324
1 parent c6e9f0f commit 8a90d49

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/hyperlink/MultipleHyperlinkPresenter.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,6 @@ public LinkListInformationControl(Shell parentShell, MultipleHyperlinkHoverManag
153153
fForegroundColor= foregroundColor;
154154
fBackgroundColor= backgroundColor;
155155
create();
156-
getShell().addListener(SWT.ZoomChanged, event -> {
157-
final Shell shell= getShell();
158-
shell.getDisplay().asyncExec(() -> {
159-
if (!shell.isDisposed()) {
160-
shell.setSize(computeSizeHint());
161-
}
162-
});
163-
});
164156
}
165157

166158
@Override
@@ -228,13 +220,6 @@ public Point computeSizeHint() {
228220
int width;
229221
if (preferedSize.y - scrollBarHeight <= constraints.y) {
230222
width= preferedSize.x - scrollBarWidth;
231-
if (Util.isWin32()) {
232-
/*
233-
* compensate rounding issue in windows
234-
* +1 for preferedSize and +1 for scrollBarWidth
235-
*/
236-
width+= 2;
237-
}
238223
fTable.getVerticalBar().setVisible(false);
239224
} else {
240225
width= Math.min(preferedSize.x, constraints.x);
@@ -243,13 +228,6 @@ public Point computeSizeHint() {
243228
int height;
244229
if (preferedSize.x - scrollBarWidth <= constraints.x) {
245230
height= preferedSize.y - scrollBarHeight;
246-
if (Util.isWin32()) {
247-
/*
248-
* compensate rounding issue in windows
249-
* +1 for preferedSize and +1 for scrollBarHeight
250-
*/
251-
height+= 2;
252-
}
253231
fTable.getHorizontalBar().setVisible(false);
254232
} else {
255233
height= Math.min(preferedSize.y, constraints.y);

0 commit comments

Comments
 (0)