getStyle method differs for width/height
Reported by Mark Caudill | August 28th, 2008 @ 05:33 PM | in 1.6.1
I was looking around and I noticed that looking up width/height on IE/Opera (Element.Methods.getStyle) returns the offsetWidth/offsetHeight. There wouldn't be a specific problem with this except that Element.getStyle returns the CSS value of width/height.
I am in favor of the actual width/height being returned if available. If not, offsetWidth can be made closer to the actual width with taking into account available padding/border information.
Comments and changes to this ticket
-
John-David Dalton August 28th, 2008 @ 06:53 PM
- → Milestone changed from to 1.6.1
- → State changed from new to bug
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
The Prototype JavaScript library.
