| Summary: | [editor] Editor horizontal scrollbar jumping to the beginning of the line | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] JSDT | Reporter: | Jacek Pospychala <jacek.pospychala> | ||||||||
| Component: | General | Assignee: | Chris Jaun <cmjaun> | ||||||||
| Status: | RESOLVED WORKSFORME | QA Contact: | Chris Jaun <cmjaun> | ||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | cmjaun, daniel, jeroen, vkhomyackov | ||||||||
| Version: | 3.2 | ||||||||||
| Target Milestone: | 3.5.1 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Jacek Pospychala
Created attachment 169778 [details]
sample.js
to reproduce:
1. open file in editor, make sure it shows up to 45 columns, so horizontal scrollbar shows up
2. put cursor in line 23, and start editing "replace("", "")"
Created attachment 169779 [details]
jumpingscrollbar.avi
how it looks in my editor
I can reproduce in 3.2 final (from helios release) using the attached source file (bug.js). Just type a space after one on the long lines with lalalalala in it. When removing the empty block after the block containing the long lines the problem disappears. Created attachment 172870 [details]
Simple js file to reproduce editing problem
Well...figured out where this is happening: TextViewer - line 4803 fTextWidget.replaceStyleRanges(region.getOffset(), region.getLength(), ranges); Though, I have no idea why it is happening. The offset being used is wrong. I observe the similar behavior in JSP editor in two cases: 1. Editing long lines (especially typing JSP comments at the end of line) 2. Opening JSP with search occurrence on long line by double-clicking on search result in Search view. Eclipse Java EE IDE for Web Developers. Version: Indigo Service Release 2 Build id: 20120216-1857 |