I think you misunderstood my question.
I totally agree that one wants the dimensions as if it were showing.
I just wonder why the *offset*Width/Height in one case and the *client*Width/Heigth in the other?

Lorenz


On 17.03.2006, at 17:47, Gregory Hill wrote:

Probably feature. I imagine when you want dimensions, you want what the
dimensions are if the element were showing, not 0x0 when it isn't.  Or
am I misunderstanding the question?

Greg

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:rails-spinoffs-
[EMAIL PROTECTED] On Behalf Of Lorenz Knies
Sent: Friday, March 17, 2006 9:21 AM
To: rails-spinoffs@lists.rubyonrails.org
Subject: [Rails-spinoffs] Element.getDimensions

Hi all,

should it be considered a bug that Element.getDimensions returns the
offsetWidth and offsetHeight properties from elemens having not
display none, but clientWidth and clientHeight from elements with
display none?
Or is it a feature?

Regards Lorenz
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to