diff options
author | Felipe Heidrich <fheidric> | 2007-05-15 20:22:21 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2007-05-15 20:22:21 +0000 |
commit | 6bd6730e32669fbb2a0c33215b3d8035dce857ef (patch) | |
tree | efe468b1c2211098353f616c6cd804c224602cb4 | |
parent | aaa32e6ce90b341fa360dc9de9a2145fa6b8c94c (diff) | |
download | eclipse.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-x | bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java | 4 |
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) { |