Quote:
Originally posted by jkd
element.runtimeStyle.height
|
Empty string again
I've got an inkling about this though - it's inside a behaviour attached to <li/> at the top of a complex list - and so it cascades through all levels of <li/> in the structure.
The attached mouseover function contains this:
Code:
if(element.parentElement.className!="udm") {
alert(element.offsetHeight);
}
else {
alert(element.offsetHeight);
}
The classname discriminator distinguishes events in the main list from events in the nested lists. The else condition is the main list-items, and there it correctly returns the offset height; only the nested items return 0.
It's bubbling of some kind, isn't it? If I "cancelBubble" at the end of the function, it won't cascade and I'll get the right value back ... but ... then *the whole thing doesn't work* - events have to cascade, otherwise it's a dead duck.
Er ...