| Summary: | [StyledText] Embedded controls in StyledText are moving on each carriage return | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Andrew Eisenberg <andrew.eisenberg> |
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | Felipe Heidrich <eclipse.felipe> |
| Severity: | normal | ||
| Priority: | P3 | CC: | akumpulainen |
| Version: | 3.3 | Keywords: | triaged |
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | stalebug | ||
FH what's the expected behaviour here? Your bug has been moved to triage, visit http://www.eclipse.org/swt/triage.php for more info. We need new API to stop children from scrolling along with pixels. *** Bug 135878 has been marked as a duplicate of this bug. *** This is a one-off bulk update. (The last one in the triage migration). Moving bugs from swt-triaged@eclipse to platform-swt-inbox@eclipse.org and adding "triaged" keyword as per new triage process: https://wiki.eclipse.org/SWT/Devel/Triage See Bug 518478 for details. Tag for notification/mail filters: @TriageBulkUpdate This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |
Build ID: 3.3 Steps To Reproduce: 1. Compile and execute the code below 2. Press carriage return 3. Both the Yellow label and the red label scrolls with each carriage return. 4. Press any other key. 5. Neither label scrolls To me this seems to be strange. Why should all controls move on carriage returns, but nothing else? I would like to see one of the following: 1. no control moves on carriage return (movement of controls with respect to text modification should be controlled explicitly through listeners, etc) 2. only controls that are below the caret position should be scrolled 3. options to configure the behavior of how and when embedded controls scroll. thanks. More information: public class SWTPlaying { public static void main(String[] args) { Display d = new Display(); final Shell s = new Shell(d); s.setSize(400, 400); s.setText("Styled Text Scroll Test"); StyledText t = new StyledText(s, 0); t.setSize(400, 400); Label l1 = new Label(t, 0); l1.setBackground(new Color(Display.getDefault(), new RGB(255,0,0))); l1.setLocation(50, 200); l1.setSize(50, 50); Label l2 = new Label(t, 0); l2.setBackground(new Color(Display.getDefault(), new RGB(255,255,0))); l2.setLocation(50, 0); l2.setSize(50, 50); t.setText("line1\nline2\nline3\nline4\nline5\n"); s.open(); while (!s.isDisposed()) while (!d.readAndDispatch()) d.sleep(); } }