| Summary: | [FieldAssist] Image of ControlDecoration is painted outside the parent area | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | m.blank | ||||||||||
| Component: | UI | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> | ||||||||||
| Status: | CLOSED DUPLICATE | QA Contact: | |||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | bsd, echan, ob1.eclipse, prakash, remy.suen | ||||||||||
| Version: | 3.7 | ||||||||||||
| Target Milestone: | --- | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Windows XP | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
m.blank
Created attachment 192728 [details]
Small application showing the bug
Created attachment 192730 [details]
Application Source, created with WindowBuilder
We are painting the image on the control's parent, so it should also get clipped with the parent. I think this bug belongs to SWT, but not sure. I'll leave it to Susan to decide that. Created attachment 198427 [details]
ControlDecoration painting outside
created in a Formpage with bare minimum:
Label l = new Label(form.getBody(), SWT.NULL);
l.setText("wow");
ControlDecoration nestedErrorDecoration = new ControlDecoration(l, SWT.TOP | SWT.LEFT);
final FieldDecoration fd2 = registry.getFieldDecoration(FieldDecorationRegistry.DEC_ERROR);
nestedErrorDecoration.setImage(fd2.getImage());
Forgot to mention, notice the 'ghost' decorator outside the FormPage on the left. Not sure why it is rendered at all. Once I resize the page however, it disappears. Created attachment 198685 [details]
Test snippet
(In reply to comment #3) > We are painting the image on the control's parent, so it should also get > clipped with the parent. I think this bug belongs to SWT, but not sure. I'll > leave it to Susan to decide that. Yes, seems to be the case. The simple test snippet is attached. From the description, this seems like a dupe of bug 339663. *** This bug has been marked as a duplicate of bug 339663 *** |