Combobox issue in ZK Framework -
when click on combo box options opening below combo box
when scrolling window of mouse scroller window scrolling down combo box option present @ same place. below of combo box option value showing below middle name
look here details click here
fiddle example here
this seems known issue (see tracker), need sync position yourself.
e.g.,
<zk> <script><![cdata[ function addsyncscroll (wgtid, parentid, add) { var wgt = zk.widget.$('#'+wgtid), parentwgt = zk.widget.$('#'+parentid); if (wgt && parentwgt) { var cbxtosync = parentwgt._cbxtosync, idx; if (!cbxtosync) { initsyncscroll(parentwgt); } cbxtosync = parentwgt._cbxtosync; if (cbxtosync) { if (!wgt._syncpopupscroll) { wgt._syncpopupscroll = function () { zk(wgt.getpopupnode_()).position(wgt.getinputnode(), "after_start"); } } if (add) { if (cbxtosync.indexof(wgt) < 0) cbxtosync.push(wgt); } else { if ((idx = cbxtosync.indexof(wgt) < 0) > -1) { cbxtosync.splice(idx, 1); } } } } } function initsyncscroll (parentwgt) { parentwgt._cbxtosync = []; parentwgt.$n().onscroll = function (event) { var cbxtosync = parentwgt._cbxtosync; (var = 0; < cbxtosync.length; i++) { cbxtosync[i]._syncpopupscroll(); } } } ]]></script> <div width="200px" height="300px"> <div id="parent" width="100%" vflex="1" style="overflow:auto;"> <label value="some text" /> <textbox value="01" /> <textbox value="02" /> <textbox value="03" /> <combobox> <attribute name="onopen"><![cdata[ clients.evaljavascript("addsyncscroll('"+self.getuuid()+"', '"+parent.getuuid()+"', "+self.isopen()+")"); ]]></attribute> <comboitem label="simple , rich" /> <comboitem label="cool!" /> <comboitem label="ajax , ria" /> </combobox> <textbox value="04" /> <textbox value="05" /> <textbox value="06" /> <textbox value="07" /> <textbox value="08" /> <textbox value="09" /> <textbox value="10" /> <textbox value="11" /> <textbox value="12" /> <textbox value="13" /> <textbox value="14" /> <textbox value="15" /> </div> </div> </zk>
Comments
Post a Comment