This project is archived and is in readonly mode.

#498 ✓wontfix
Daniel Steigerwald

getOffsetParent IE bug

Reported by Daniel Steigerwald | November 26th, 2008 @ 03:20 PM | in 2.0 (closed)

Doesn't return body element, which is regular offsetParent. Should be:

getOffsetParent: function() {
	var element = this;
	if (isBody(element)) return null;
	if (!Browser.Engine.trident) return element.offsetParent;
	while ((element = element.parentNode) && !isBody(element)) {
		if (styleString(element, 'position') != 'static') return element;
	return element;

I can imagine a bit more solid solution with check if document contains element but... this is enough.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket