Combo positioning bug with document border

If there is a border on the document, then the combo list appears in the wrong place. Attached is sample code for the bug.

The fix seems simple but I am not sure if it will work in all cases:

in dhtmlXCombo.prototype.getPosition

instead of returning:
return [pos.left, pos.top];

I return:
return [pos.left+parseInt(document.body.style.borderLeftWidth), pos.top+parseInt(document.body.style.borderTopWidth)];

And that worked.
bug2.zip (951 Bytes)

Hello,

Yes, there is such a problem in old IE versions. We will fix it in the next version. Thanks for sharing your solution !