This project is archived and is in readonly mode.

#605 ✓invalid
Thomas Aylott

Element.getStyle('width') inconsistent in returning PX or %

Reported by Thomas Aylott | February 26th, 2009 @ 05:33 PM | in 2.0 (closed)

cf. http://jsbin.com/inako

The element is set in the CSS to @width:50%@

The first time you run el.getStyle('width') it returns the width in PX

After you el.setStyle('width','50%') and then run el.getStyle('width') it returns the width in %

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Pages