summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2007-05-15 20:22:21 +0000
committerFelipe Heidrich <fheidric>2007-05-15 20:22:21 +0000
commit6bd6730e32669fbb2a0c33215b3d8035dce857ef (patch)
treeefe468b1c2211098353f616c6cd804c224602cb4
parentaaa32e6ce90b341fa360dc9de9a2145fa6b8c94c (diff)
downloadeclipse.platform.swt-6bd6730e32669fbb2a0c33215b3d8035dce857ef.tar.gz
eclipse.platform.swt-6bd6730e32669fbb2a0c33215b3d8035dce857ef.tar.xz
eclipse.platform.swt-6bd6730e32669fbb2a0c33215b3d8035dce857ef.zip
Bug 55142 Horizontal scrollbar disabled with editor content horizontally scrolled
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java4
1 files changed, 4 insertions, 0 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 732e8c2b97..890b848e23 100755
--- 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
@@ -6300,8 +6300,12 @@ void reset() {
super.redraw();
}
void resetCache(int firstLine, int count) {
+ int maxLineIndex = renderer.maxWidthLineIndex;
renderer.reset(firstLine, count);
renderer.calculateClientArea();
+ if (0 <= maxLineIndex && maxLineIndex < content.getLineCount()) {
+ renderer.calculate(maxLineIndex, 1);
+ }
setScrollBars(true);
if (!isFixedLineHeight()) {
if (topIndex > firstLine) {