:: Forum >>

combo text size background colour

.aw-combo-box {width: 200px; height: 18px; background: #cff; font: menu; text: 0.75em}
.aw-combo-box .aw-item-box {line-height: 1em; font: menu; background: #cff; text: 0.75em}
.aw-combo-box .aw-item-control {height: 22px; font: menu; background: #cff;}
.aw-combo-box .aw-list-control {height: 22px; font: menu; background: #cff;}

Please show me how to set font size and background colour of the text box portion of the combo.

Please show me how to set font size and background colour of the list portion of the cmbo.
Andy
Monday, February 8, 2010
I asked the same question recently, someonw was kind enough to post the following:

obj.getPopupTemplate().setStyle("width","300");
obj.getPopupTemplate().setStyle("height","300");
obj.getPopupTemplate().getItemTemplate().setStyle("font-size","20px");
obj.getPopupTemplate().getItemTemplate().setStyle("height","24px");
obj.getContent("box/text").setStyle("font-size", "20px");
obj.getContent("box/text").setStyle("align", "top");

This did the trick for me.

Erik Dobrie
Monday, February 8, 2010
Thanks Erik.

I am still getting the

obj.getContent("box/text").setStyle("align", "top");

showing the text with a very large whitespace overhead

I tried

obj.getContent("box/text").setStyle("border", "0px");

but to avail.
Andy
Monday, February 8, 2010
I am having the exact same problem!!! ugh
Matt
Saturday, February 13, 2010
I am having the exact same problem!!
Matt
Saturday, February 13, 2010
this is whats happening.

|---------------------------------------------------------------
| |
|--------------------------------------------------| |
| this inner area im able to color (e.g. blue) | ------ |
| | \ / |
|--------------------------------------------------| \ / |
| all of this outer area im not able to color (e.g. white) |
|---------------------------------------------------------------

i cant figure out of its some padding or border problem. but i tried these styles and it doesnt seem to fix it. i want the whole background some color other than white for UI matching reasons. any ideas?
Matt
Saturday, February 13, 2010
obj.getContent("box").setStyle("border", "0px");

obj.setStyle("background", "lightblue");
obj.getContent("box").setStyle("background", "lightblue");
Sunday, February 14, 2010

This topic is archived.


Back to support forum

Forum search