enyojs/layout — pull request #100 by ShiftyAxel (2012-12-03 14:23:29+00:00)
Title: Panels: Stop lerpObject from outputting e-notation

When lerping between arrangements, sometimes lerpObject will return e-notation for extremely small values (ex 9.3247165234e-7). This causes unexpected behaviour when applied to certain css styles such as opacity (the value is interpreted as 1.0 instead of 0.00000009.3247165234).

This adds a .toFixed(20) to the calculation, thus preventing the issue.