Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2016-03-11 12:16:26 -0500
committerMarkus Keller2016-03-11 12:16:26 -0500
commitc20cb55224b7ae51847a853aecae3db792e35b12 (patch)
tree403bdec2faf18bc373f64c27e248ae949c17c596
parentd85b2162b0ae691370600730402bcd0086076303 (diff)
parentf50994fe9b815dddd13700087e2289575a82e8b7 (diff)
downloadeclipse.platform.swt-slakkimsetti/HighDPIChangesforNeon.tar.gz
eclipse.platform.swt-slakkimsetti/HighDPIChangesforNeon.tar.xz
eclipse.platform.swt-slakkimsetti/HighDPIChangesforNeon.zip
Merge branch 'master' into slakkimsetti/HighDPIChangesforNeonslakkimsetti/HighDPIChangesforNeon
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
index f34c6d421b..c2a76238cf 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
@@ -1595,7 +1595,7 @@ void calculateTopIndex(int delta) {
// client area or if space is available but not used (the latter should
// never happen because we use claimBottomFreeSpace)
if (fullLineVisibleHeight < verticalIncrement) {
- topIndex--;
+ topIndex = getVerticalScrollOffset() / verticalIncrement;
}
} else if (topIndex >= content.getLineCount()) {
topIndex = content.getLineCount() - 1;

Back to the top