Home › Forums › JavaScript › Getting IE6 to recalculate absolute position after BlindDown › Re: Getting IE6 to recalculate absolute position after BlindDown
August 25, 2009 at 5:21 am
#62686
nulle
Member
Sorry for ressing this post from the dead, but I had similar issue, not with BlindDown, but with simple self-made script that hides / shows divs, and in case someone else stumbles on this, hope it helps.
I solved this problem in IE6 by simply changing the absolutely positioned element’s positioning to relative and immediately changing it back to absolute. The change is not visible, but IE6 gets it.
Code:
// here you do whatever you do to expand / shrink stuff
// ..
x = document.getElementById(“absolutely_positioned”);
x.style.position=”relative”;
x.style.position=”absolute”;
// ..
x = document.getElementById(“absolutely_positioned”);
x.style.position=”relative”;
x.style.position=”absolute”;