diff options
author | Felipe Heidrich <fheidric> | 2009-10-29 20:34:58 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2009-10-29 20:34:58 +0000 |
commit | 35e16ae85825c3a4c8d653be197c96841d18bfda (patch) | |
tree | fcde131a77f37e0f3076c7476f36af17b0ca4d59 | |
parent | a461e8c91db078d6ca6c4d68c04887c5fe3d1e96 (diff) | |
download | eclipse.platform.swt-35e16ae85825c3a4c8d653be197c96841d18bfda.tar.gz eclipse.platform.swt-35e16ae85825c3a4c8d653be197c96841d18bfda.tar.xz eclipse.platform.swt-35e16ae85825c3a4c8d653be197c96841d18bfda.zip |
Bug 287119 - [StyledText] styled text widget content can be shifted left with out scroll bar when line wraps (3.5.2 backport)
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java | 1 |
1 files changed, 1 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 038430f582..914a473b9b 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 @@ -7294,6 +7294,7 @@ boolean scrollHorizontal(int pixels, boolean adjustScrollBar) { if (pixels == 0) { return false; } + if (wordWrap) return false; ScrollBar horizontalBar = getHorizontalBar(); if (horizontalBar != null && adjustScrollBar) { horizontalBar.setSelection(horizontalScrollOffset + pixels); |