| Summary: | [Widgets] Controls with null background inside Group or TabFolder do not display correctly in Cocoa | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Scott Kovatch <skovatch> | ||||||||
| Component: | SWT | Assignee: | Scott Kovatch <skovatch> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | Silenio Quarti <Silenio_Quarti> | ||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | markus.kell.r, skjpope, skovatch | ||||||||
| Version: | 3.6 | Flags: | Silenio_Quarti:
review+
|
||||||||
| Target Milestone: | 3.6.2 | ||||||||||
| Hardware: | Macintosh | ||||||||||
| OS: | Mac OS X | ||||||||||
| Whiteboard: | |||||||||||
| Bug Depends on: | 290212 | ||||||||||
| Bug Blocks: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Scott Kovatch
Cloned for 3.6.2. No rush, but it would be good to consider this for 3.6.2. This is most likely the same bug as Bug 297633. The fix for this was in combination with Bug 290212 that Scott fixed. I haven't seen the *actual* patch but if it's the same as the one I described in these above two bugs, it should be good. I'm running with a patched system here, so when you upload the test case, I'll check the changes in the HEAD and confirm that it's fixed by the fixes for these other bugs. I've spent so much time getting widgets to work correctly in Groups and TabFolders that I'd be amazed if this is *not* the case. But it's always possible! By the way, you forgot the screenshot. Created attachment 186864 [details]
Fix for 3.6.2
Patch from original bug applied to 3.6.2.
Ready for review. Created attachment 186865 [details]
Fix for 3.6.2
Wrong patch first time.
Should Button.drawsBackground() (label too) check for "backgroundImage != null" as well? I have not tried but I believe if someone sets a background image in a button or label, it is not going to work? return background != null || backgroundImage != null; (In reply to comment #6) > Should Button.drawsBackground() (label too) check for "backgroundImage != null" > as well? I have not tried but I believe if someone sets a background image in a > button or label, it is not going to work? > > > return background != null || backgroundImage != null; Good point. Yes. Your code above is correct and we need to alter the patch accordingly. Created attachment 186962 [details] Updated 3.6.2 patch Updated with the suggestion in comment #6 Need to fix HEAD as well. Fixed in HEAD and on the 3_6_maintenance branch > 20110118. |