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

Bug 301943

Summary: [CTabFolder] Custom variant styling on CTabITem does not set the background completely
Product: [RT] RAP Reporter: Nikolai Raitsev <nikolai.raitsev>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.3   
Target Milestone: 1.3 M7   
Hardware: All   
OS: All   
Whiteboard:

Description Nikolai Raitsev CLA 2010-02-05 06:04:42 EST
Build Identifier: 

the property background-color is ignored by custom variant style for the border of tab item. looks like a bug - custom variant is not set to
"ctabfolder-frame". 

For more details please see newsgroup http://www.eclipse.org/forums/index.php?t=msg&th=161992&start=0& 

Message #512109 with screenshot.

Reproducible: Always

Steps to Reproduce:
code is in my posting to the newsgroup
Comment 1 Nikolai Raitsev CLA 2010-02-05 06:08:48 EST
I have tested the bug with RAP Version 1.3 M4
Comment 2 Ivan Furnadjiev CLA 2010-02-23 06:14:06 EST
The CTabFolder frame uses the CTabFolder custom variant and not the CTabItem one. Adding the same custom variant "parent" to the CTabFolder too solves the problem.
Comment 3 Nikolai Raitsev CLA 2010-03-17 20:06:26 EDT
Sorry, but I cannt reproduce your solution (tryed it with 1.3.0 M5 and the RAP HEAD Version). Where I should add "parent" to CTabFolder? I have tryed both, in Java code and in style sheet, but the result is the same as described in the newsgroup. Can you provide one code snippet?
Comment 4 Ivan Furnadjiev CLA 2010-03-18 04:56:41 EDT
Hi Nikolai, the bug is fixed in CVS HEAD. You need to add "parent" custom variant to the parent CTabFolder too like:
tabFolderPrimary.setData( WidgetUtil.CUSTOM_VARIANT, "parent" );