| Summary: | [Forms] Section background gradient is missing before expand | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | kylin Mising name <kylin77> | ||||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P2 | CC: | austin.riddle, eiswind, neubauer, tbuschto | ||||||
| Version: | 1.5 | ||||||||
| Target Milestone: | 1.5 M7 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
kylin Mising name
Created attachment 208513 [details]
section init
Created attachment 208514 [details]
section expanded
(In reply to comment #0) > Build Identifier: 1.5.0-M4-20111213-2043 > > final Section section = toolkit.createSection(parent, > Section.DESCRIPTION | Section.TITLE_BAR | Section.TWISTIE); > > When Open View,The Section Has No BackColor,Afer Expanded,BackColor Is Show > > Reproducible: Always I have also experienced this problem. Background gradient is not visible as it is overrided (removed) by the background color set by the server - see AdapterUtil.js "background" property handler. This code is needed as background color set by the server should override the background gradient set by the theming. One possible solution will be to combine the background color and background gradient in a single message property "background". One thing that I don't like in this solution is the different property format - one JSON array with 4 element if it is color, and another complex JSON array in case of gradient. If we go in this direction, we have to be consistent in all widgets that use background gradient (CTabFolder selection background, CLabel background...). Set priority to P2 as this is a regression. I have the same problem in our application but only in some cases. There are some views with sections showing the title background and some with missing title background gradient. Hence, I searched for a reason for the different behavior and found a workaround. Perhaps, you can also use the following workaround:
final Section section = toolkit.createSection(parent,
Section.DESCRIPTION | Section.TITLE_BAR | Section.TWISTIE);
section.setBackground(null);
Sabine, thanks for the workaround. It should work as background color is not rendered to the client if you set it to null. *** Bug 375543 has been marked as a duplicate of this bug. *** Fixed in CVS HEAD in AdapterUtil.js |