Inside a fixed container
Q:
When I try and use a ComboBox inside a div with "position:fixed" the items appear in the wrong place when they drop down. This seem to happen only in Internet Explorer.
A:
In order to fix the problem, please load the jQuery library on your page:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.js"></script>
Then add this script to the bottom of your page:
<script type="text/javascript">
window.onload = function () {
Obout.Interface.OboutCore.getLeft = function (element) {
return $(element).offset().left;
}
Obout.Interface.OboutCore.getTop = function (element) {
return $(element).offset().top;
}
}
</script>
|