Ruby Forum Rails Spinoffs (closed, excessive spam) > getHeight

Posted by pedz (Guest)
on 10.07.2008 00:01
(Received via mailing list)
I don't consider this a bug report.  Just a report with perhaps an
unhappy face attached to it.

I have an input element of type text in a form nested down inside a td
element whose display is none.  getHeight() in that case returns 0.
(getWidth() does too).

I happen to be testing on Firefox 3.

What I plan to do to solve this is hook in and recompute everything
when this element is shown but if anyone knows of another tact, please
let me know.

Also, getPosition returns offsetWidth and offsetHeight sometimes and
clientWidth and client Height other times.  In my particular, twisted
case, I'd actually like to have scollWidth and scrollHeight but I know
that many other times, that is not what is desired.

Thank you
Posted by kangax (Guest)
on 10.07.2008 01:53
(Received via mailing list)
This is something people stumble upon once in a while : )
Take a look at this patch http://dev.rubyonrails.org/ticket/11142

-- kangax
Posted by jdalton (Guest)
on 10.07.2008 02:38
(Received via mailing list)
@pedz On your last statement do you mean Element#positionedOffset() ?