Forum: Rails Spinoffs (closed, excessive spam) getHeight

0ce4db5e1083663c575158643313852c?d=identicon&s=25 pedz (Guest)
on 2008-07-10 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
F1fcf834ddad415f60d29c87cc10d4d4?d=identicon&s=25 kangax (Guest)
on 2008-07-10 01:53
(Received via mailing list)
This is something people stumble upon once in a while : )
Take a look at this patch

-- kangax
299a3d891ff1920b69c364d061007043?d=identicon&s=25 jdalton (Guest)
on 2008-07-10 02:38
(Received via mailing list)
@pedz On your last statement do you mean Element#positionedOffset() ?
This topic is locked and can not be replied to.