Categories | Question details Back To List | ||
Combo box Scrolling issue in IE 6 I am using your combo box the filter on the options. everything i working great but when i scroll the box with the value in it is not scrolling with the page and staying in a static position on the page. I think this is caused somehow with the div scrolling and not the page its self. i have no problem with this in fire fox but there is a problem with this in IE 6. Answer posted on Nov 20, 2007 09:23 In current implementation list of combo options attached directly to body and just shown at correct position So if all document scrolled - the list of options will be shown in correct position, but if you combo placed in some other scrolable container - during scrolling list of options will stay at fixed position causing incorrect view Unfortunately there is no easy fix for such issue , because layout can be really complex and predict correct position in common case nearly impossible To fix issue you can modify code ( so it will work on your page ) dhtmlxcombo.js, line 453 document.body.insertBefore(this.DOMlist,document.body.firstChild); //document body here can be replaced with your scrollable container object dhtmlxcombo.js, line 497 var pos=this.getPosition(this.DOMelem,your_container); //second param, object of scrollable container need to be added and the scrolable container itself need to have position relative or absolute to work correctly |