Sunday, 30 December 2012

Setting height & width of combo box trigger in EXTJS

Hello Guies it is also possible to set height & width of combo box trigger in extjs. you people should know that by default height of this trigger is 21px and width is 17px, you can look it on the file- ext-all.css. the structure of that line in css will seem like it-
.x-form-field-wrap .x-form-trigger{width:17px;height:21px;border:0;background:transparent url(../images/default/form/trigger.gif) no-repeat 0 0;cursor:pointer;border-bottom:1px solid #B5B8C8;position:absolute;top:0;}

so you can simply modify height and width of the trigger in their corresponding positions( given in highlighted positions).

2 comments:

  1. yes ofcourse it is true but, if you are doing this then the other component may be affect, so for making consistency with another component it will be good if you are including css regarding to yhat component in your welcome file and call that css in that particular component using cls or ctCls.

    ReplyDelete