[jQuery] Re: How is height calculated?

2007-06-17 Thread Fred Janon
Klaus, Humm, I still can't get the size of an element while it's hidden and absolute... I tried with an element: style=display: none; position: absolute and alert(id: + elt.id + height: + elt.offsetHeight + width: + elt.offsetWidth); alert(id: + elt.id + style.height: +

[jQuery] Re: How is height calculated?

2007-06-16 Thread Klaus Hartl
Fred Janon wrote: Hi, I am trying to understand how the height of an element is calculated in jQuery. I don't understand how the height can be calculated especially when the element is hidden with display:none. Thanks Fred Fred, if the particular element is hidden, it is absolutely

[jQuery] Re: How is height calculated?

2007-06-16 Thread Rick
I think its not calculated, but just the value from css (elm.style.height). The Dimensions plugin does calculate it (innerHeight, outerHeight - elm.offsetHeight). On 16 jun, 16:49, Fred Janon [EMAIL PROTECTED] wrote: Hi, I am trying to understand how the height of an element is calculated in