| Summary: | StyledText: Horizontal scrollbar is not reset when calling setText(String) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Nam Quang Tran <qforce> | ||||
| Component: | SWT | Assignee: | Felipe Heidrich <eclipse.felipe> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | eclipse.felipe | ||||
| Version: | 4.2 | ||||||
| Target Milestone: | 3.8 M2 | ||||||
| Hardware: | PC | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 202009 [details]
StyledText with clear button
This was tested against SWT 3.7. fixed http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=bd21f3765c0c3d8551e66cecb7910c23ee2a020c thank you for the test case. |
Build Identifier: When the StyledText displays a horizontal scrollbar and the text is cleared by calling StyledText.setText(""), the horizontal scrollbar is not updated. However, this problem does not occur when the text is cleared by manually selecting and deleting the text. Reproducible: Always Steps to Reproduce: 1) Run the attached snippet and click on the 'Clear' button. Result: The horizontal scrollbar is not reset correctly, but the vertical scrollbar is. 2) Re-run the snippet, delete all text by pressing Ctrl+A, then Delete key. Result: Both scrollbars are reset correctly.