diff options
author | Markus Keller | 2012-03-05 23:44:51 +0000 |
---|---|---|
committer | Markus Keller | 2012-03-05 23:44:51 +0000 |
commit | 810532407badf64e9ddaa89e81c3a6d04ac891bf (patch) | |
tree | 70edd6c2084a172788568dd77e3fe94fb98efbb2 | |
parent | bd22eba9967e14fac0d716de9c312f201ac9a3e9 (diff) | |
download | eclipse.platform.text-810532407badf64e9ddaa89e81c3a6d04ac891bf.tar.gz eclipse.platform.text-810532407badf64e9ddaa89e81c3a6d04ac891bf.tar.xz eclipse.platform.text-810532407badf64e9ddaa89e81c3a6d04ac891bf.zip |
Bug 363482: [rulers] Line number ruler has gray box instead of last linev20120305-2344
number
-rw-r--r-- | org.eclipse.jface.text/src/org/eclipse/jface/text/source/SourceViewer.java | 4 |
1 files changed, 3 insertions, 1 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 c574a468c94..f8298e530f0 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, 2011 IBM Corporation and others. + * Copyright (c) 2000, 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 @@ -127,6 +127,8 @@ public class SourceViewer extends TextViewer implements ISourceViewer, ISourceVi Rectangle trim= textWidget.computeTrim(0, 0, 0, 0); int topTrim= - trim.y; int scrollbarHeight= trim.height - topTrim; // horizontal scroll bar is only under the client area + if ((textWidget.getScrollbarsMode() & SWT.SCROLLBAR_OVERLAY) != 0) + scrollbarHeight= 0; int x= clArea.x; int width= clArea.width; |