Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Hendrikx2019-06-05 18:01:00 +0000
committerMat Booth2019-11-05 11:40:07 +0000
commite524ec6716a702bf8f79e3ff7da64a12bcc42cdf (patch)
treed85a5528ae83f973af04e40648c87a662ace5b25
parentccbc475b37291efe48da366a51c6ce4391cb8056 (diff)
downloadeclipse.platform.team-I20191111-0920.tar.gz
eclipse.platform.team-I20191111-0920.tar.xz
eclipse.platform.team-I20191111-0920.zip
compare view Add call to update scroll bar during painting so the thumb is sized correctly when view is freshly created. Change-Id: Ieec2780b2241d0eb71211b21cfdcf240ef6e275a Signed-off-by: John Hendrikx <hjohn@xs4all.nl>
-rw-r--r--bundles/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java
index e3e720a09..d29f8dd3d 100644
--- a/bundles/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java
+++ b/bundles/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java
@@ -19,6 +19,7 @@
* Stephan Herrmann (stephan@cs.tu-berlin.de) - Bug 291695: Element compare fails to use source range
* Robin Stocker (robin@nibor.org) - Bug 398594: [Edit] Enable center arrow buttons when editable and for both sides
* Robin Stocker (robin@nibor.org) - Bug 399960: [Edit] Make merge arrow buttons easier to hit
+ * John Hendrikx (hjohn@xs4all.nl) - Bug 541401 - [regression] Vertical scrollbar thumb size is wrong in compare view
*******************************************************************************/
package org.eclipse.compare.contentmergeviewer;
@@ -2163,6 +2164,7 @@ public class TextMergeViewer extends ContentMergeViewer implements IAdaptable {
fBirdsEyeCanvas= new BufferedCanvas(composite, SWT.NONE) {
@Override
public void doPaint(GC gc) {
+ updateVScrollBar(); // Update scroll bar here as initially viewport height is wrong
paintBirdsEyeView(this, gc);
}
};

Back to the top