View Full Version : Styling Container Div (ComboBox)

27 May 2009, 4:42 PM
When I add a combo box it seems to automatically add a div around the input element:

<div id="ext-gen8" class="x-form-field-wrap" style="width: 147px;">

I want to change this style (in the current example I want to add display:inline). I don't want to change x-form-field-wrap globally but just this case. My brain says to either add a class to the classes or give it a unique ID that I can override the style. I can't seem to figure out how to do either. I see ways to add classes for lots of other things (over, container, etc) but not for this generate div. What am I missing?


27 May 2009, 11:37 PM
Grab the wrap on render, and add a CSS class to it.

28 May 2009, 5:58 AM
Sorry, I'm not sure what 'grab the wrap on render' means - do you have an example?

28 May 2009, 6:17 AM
render listener. Access the Element, go up to .x-form-field-wrap