-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I'm using a tree inside a panel to act like a menu. When the tree is displayed inside the panel then the background colour of the unused part of the tree appears grey rather than the background white used in the panel
<tabpanel id="panelPlanning" height="100%" > <tree width="100%" height="100%"> <treecols> <treecol label="" /> </treecols> <treechildren> <treeitem> <treerow> <treecell label="New..." /> </treerow> </treeitem> <treeitem> <treerow> <treecell label="Summary" /> </treerow> </treeitem> </treechildren> </tree> </tabpanel>
Try with 'contentStyle':
<groupbox id="groupbox_menu" contentStyle="background-color: white; overflow:auto">
best
Stephan
I can't set 'contentStyle' against the tree - it won't accept it. I've tried using your suggested settings as...
style = "background-color: white"
... against both the enclosing panel and/or tree - neither works.
One thing I noticed. I had the tree set to height="100%". If I remove this then the grey background goes but I get a line border around the tree which I don't want. Any suggestions for removing this?
seems the background-color comes from the tabPanel
Try remove the background-image of the tree,
<tree ... style="background-image: none; background-color: white;">
Regards,
Ben
Asked: 2012-03-10 06:03:41 +0800
Seen: 169 times
Last updated: Mar 16 '12