Ticket #6199 (closed bug: duplicate)
:hidden selector return false although div is actually hidden (IE8)
|Reported by:||erlichmen||Owned by:|
I debugged a fadeIn that didn't fadeIn the div, I track the problem with the following lines of code:
<code> var width = elem.offsetWidth, height = elem.offsetHeight,
skip = elem.nodeName.toLowerCase() === "tr";
return width === 0 && height === 0 && !skip ?
true : width > 0 && height > 0 && !skip ?
false : jQuery.curCSS(elem, "display") === "none";
this code assumes that if the width and height of a div is bigger then zero then the div is not hidden and there is no need to check the display style.
In my case the div *has* dimensions but display is set to none. The fadeIn animation doesn't work because it assumes that since the div is not hidden there is no need to remove the display:none from the style.
- Status changed from new to closed
- Resolution set to invalid
- Component changed from core to fx
- Status changed from closed to reopened
- Resolution invalid deleted