Community
Participate
Working Groups
Build Identifier: 20100917-0705 When i use a ScrolledComposite, the ControlDecoration of a Control is displayed outside the area of the ScrolledComposite Reproducible: Always Steps to Reproduce: 1. Create a field inside a ScrolledComposite 2. Add a ControlDecoration 3. Move the border of the ScrolledComposite over the decoration image
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 ***