Categories | Question details Back To List | ||||||||
dhtmlxCombo - List length Hello, i am instantiating a combobox via script: <div id="query_entry[1].operatorBox"></div> <script> var z1 = new dhtmlXCombo("query_entry[1].operatorBox","z1",42,'image'); z1.addOption([ {value:"EQ",text:"",css:"padding-left:0px",img_src:"../../images/s_BGEQUA.gif"}, {value:"GE",text:"",css:"padding-left:0px",img_src:"../../images/s_BGGREQ.gif"}, {value:"GT",text:"",css:"padding-left:0px",img_src:"../../images/s_BGGREA.gif"}, {value:"LE",text:"",css:"padding-left:0px",img_src:"../../images/s_BGLEEQ.gif"}, {value:"LT",text:"",css:"padding-left:0px",img_src:"../../images/s_BGLESS.gif"}, {value:"NE",text:"",css:"padding-left:0px",img_src:"../../images/s_BGNEQU.gif"}, {value:"BT",text:"",css:"padding-left:0px",img_src:"../../images/s_BGIVIN.gif"}, {value:"NB",text:"",css:"padding-left:0px",img_src:"../../images/s_BGIVEX.gif"}]); z1.enableOptionAutoHeight(true); z1.attachEvent("onSelectionChange",onSelectionChangeFunc); function onSelectionChangeFunc() { return htmlbSL(this,2,'change:change',''); } </script> I want to have only pictures, so i set new dhtmlXCombo("query_entry[1].operatorBox","z1",42,'image'); That seems to be the smallest value, without running into javascript errors. But if the user presses the value help i will get a listbox with too many empty entries at the end. How can i set the length exactly so, that exctaly the 8 entries appear without any scrolling slider? Best regards, Stefan z1.enableOptionA PS: using z1.enableOptionAutoHeight(true); does not effect anything :-( Answer posted by Alex (support) on Mar 06, 2009 05:20 Hello, Please, try change the .dhx_combo_list div class in the dhtmlxcombo.css as follows: .dhx_combo_list div{ This modification must fix the problem. Answer posted by Stefan on Mar 06, 2009 07:49 ... no :-( Attachments (1)
|