View Full Version : [FIXED-477] Element.unitizeBox only works with pixels

29 Oct 2010, 6:41 AM
Hi Guys,

I think there's a bug in Element.unitizeBox that prevents the use of any other unit other than pixels.

Here's the method:

unitizeBox : function(box){
var A = this.addUnits,
B = this.parseBox(box);

return A( B.top ) ' '
A( B.right ) ' '
A( B.bottom ) ' '
A( B.left );


The problem is that the object that comes out of parseBox contains only numbers, and not units, so when you send a number into A, A.K.A. addUnits, you will always get pixels as the unit.

Please take a look at this guys :D


29 Oct 2010, 9:19 AM
Thanks for the bug report.

26 Nov 2010, 9:59 AM
This has been implemented and will be part of release 1.0.1.