I have been experimenting with the code for determining element position that is on DHTML Diner
[url]http://www.webreference.com/dhtml/diner/realpos4
I have thought of some enhancements that could be made to this:-
–
It needs to take account of scrollTop and scrollLeft, in the event that an element is positioned within say a DIV which has overflow:auto set;
Mozilla 1.6 does not seem to recognise in the offsetParent chain, positioned DIV borders.
As a quirk, in Mozilla 1.6 if you have a positioned DIV with border set, and also “overflow:auto” set, then you seem to need to count the border value “twice” in calculating element position.
Does anyone know how you submit comments to Webreference?