From b757b5932c32d23877eed81368dc483a02ae71b7 Mon Sep 17 00:00:00 2001 From: Markus Keller Date: Tue, 28 Aug 2012 16:48:43 +0200 Subject: Bug 387095: [10.8][navigation] Scroll bars in hover prevent clicking on "Open Implementation" --- .../eclipse/jface/text/hyperlink/MultipleHyperlinkPresenter.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/hyperlink/MultipleHyperlinkPresenter.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/hyperlink/MultipleHyperlinkPresenter.java index edbd29a5477..35a8d7bfbe2 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/hyperlink/MultipleHyperlinkPresenter.java +++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/hyperlink/MultipleHyperlinkPresenter.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2011 IBM Corporation and others. + * Copyright (c) 2008, 2012 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -223,6 +223,12 @@ public class MultipleHyperlinkPresenter extends DefaultHyperlinkPresenter implem int scrollBarWidth= fTable.getVerticalBar().getSize().x; int scrollBarHeight= fTable.getHorizontalBar().getSize().y; + if (IS_MAC && fTable.getScrollbarsMode() == SWT.SCROLLBAR_OVERLAY) { + // workaround for https://bugs.eclipse.org/387732 : [10.8] Table scrollbar width is 16 (not 15) on Mountain Lion + scrollBarWidth--; + scrollBarHeight--; + } + int width; if (preferedSize.y - scrollBarHeight <= constraints.y) { width= preferedSize.x - scrollBarWidth; -- cgit v1.2.3