Text Field Resize Hack ( Dynamic~Input size Bug )

Solution for : http://wonderfl.net/c/25DDL

That seems to do the trick:
------------------------------------------------------
// The size difference between the two states ( Dynamic~Input )
gap = text.getLineMetrics(0).descent

// and then 
width2 = text.width + ( text.type == 'input' ? 0 : gap  );
------------------------------------------------------

/!\ Note : will sometimes result in 1px error.

TEXT FORMAT CONTROLS : 

B - Bold 
TF - update textField's text format every 1 second
aA - change font size
F - change font family 