Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2013-03-22 08:38:18 +0000
committerDani Megert2013-03-22 08:38:18 +0000
commit67e1ed78a51efe5d1182de6bb9f98631a3e9841c (patch)
tree35e98b8b68d5bb448a447ae717e942dba0607faa
parent3d4e3dbe167e3b75bf44aab5b252c8b4670a1fca (diff)
downloadeclipse.platform.text-67e1ed78a51efe5d1182de6bb9f98631a3e9841c.tar.gz
eclipse.platform.text-67e1ed78a51efe5d1182de6bb9f98631a3e9841c.tar.xz
eclipse.platform.text-67e1ed78a51efe5d1182de6bb9f98631a3e9841c.zip
Return correct scroll arrow heights for invisible scroll bar
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/source/SourceViewer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/SourceViewer.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/SourceViewer.java
index f8298e530..fc2d11fdb 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/SourceViewer.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/SourceViewer.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2012 IBM Corporation and others.
+ * Copyright (c) 2000, 2013 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
@@ -187,7 +187,7 @@ public class SourceViewer extends TextViewer implements ISourceViewer, ISourceVi
*/
private int[] getVerticalScrollArrowHeights(StyledText textWidget, int bottomOffset) {
ScrollBar verticalBar= textWidget.getVerticalBar();
- if (verticalBar == null)
+ if (verticalBar == null || !verticalBar.isVisible())
return new int[] { 0, 0 };
int[] arrowHeights= computeScrollArrowHeights(textWidget, bottomOffset);

Back to the top