| Summary: | [Text] programmaticaly selection doesn't works correctly (only IE) | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Serge Démoulin <serge_demoulin68> | ||||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | alexander.becher | ||||||
| Version: | 1.4 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Serge Démoulin
Created attachment 200187 [details]
example class
Serge, without looking in deep in your code, I want to let you know that widget subclassing is illegal in SWT (will be illegal in RAP too - see bug 333272 ). The Text widget JavaDoc states that: "IMPORTANT: This class is *not* intended to be subclassed." I k(In reply to comment #2) > Serge, without looking in deep in your code, I want to let you know that widget > subclassing is illegal in SWT (will be illegal in RAP too - see bug 333272 ). > The Text widget JavaDoc states that: "IMPORTANT: This class is *not* intended > to be subclassed." I know but it is only a quick&dirty test class and since I'm not overriding any method I guess it doesn't matter. It is not the cause of the problem. I can reproduce it with your snippet, but currently I have no idea what is the reason for this weird behavior. (In reply to comment #4) > I can reproduce it with your snippet, but currently I have no idea what is the > reason for this weird behavior. I guess the first cause is that this special characters are coded on 2 bytes instead of 1 byte. This is not an issue in IE9 (standard rendering), but I still can reproduce the problem with IE8 (1.5M6). Created attachment 232639 [details]
Patch to reproduce in controls demo
I've added a patch to reproduce the problem in the controls demo (text tab).
The error occurs when you enter multi-line text with style MULTI enabled.
If you select something in the first line e.g. from 1 to 2, the text widget selects from 0 to 1.
If you do the same using the mouse and then leave the textfield by pressing TAB and then reenter the textfield by pressing SHIFT-TAB the selection shifts one character to the left
This is reproducible on version 2.0 and 2.1 with IE8 but not IE9.
The IE7/8 support is discontinued in RAP 3.0. Close as WONTFIX. |