Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366997

Summary: [Forms] Section background gradient is missing before expand
Product: [RT] RAP Reporter: kylin Mising name <kylin77>
Component: RWTAssignee: 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 Flags
section init
none
section expanded none

Description kylin Mising name CLA 2011-12-16 21:44:25 EST
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
Comment 1 kylin Mising name CLA 2011-12-16 21:48:25 EST
Created attachment 208513 [details]
section init
Comment 2 kylin Mising name CLA 2011-12-16 21:48:49 EST
Created attachment 208514 [details]
section expanded
Comment 3 Austin Riddle CLA 2011-12-19 11:18:37 EST
(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.
Comment 4 Ivan Furnadjiev CLA 2011-12-22 08:23:45 EST
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...).
Comment 5 Ivan Furnadjiev CLA 2011-12-22 09:32:25 EST
Set priority to P2 as this is a regression.
Comment 6 Sabine Neubauer CLA 2012-02-15 10:57:35 EST
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);
Comment 7 Ivan Furnadjiev CLA 2012-02-15 11:47:17 EST
Sabine, thanks for the workaround. It should work as background color is not rendered to the client if you set it to null.
Comment 8 Ivan Furnadjiev CLA 2012-03-28 10:23:15 EDT
*** Bug 375543 has been marked as a duplicate of this bug. ***
Comment 9 Tim Buschtoens CLA 2012-04-05 05:48:42 EDT
Fixed in CVS HEAD in AdapterUtil.js