[HTML5] TextField default height

[EDIT] : The problem was solved. TextFieldAutoSize is String on flash ( “center”, “left” …), but is Int on HTML5, so I did Std.string( TextFieldAutoSize.LEFT ) which is wrong .

Is it possible TextField to get default textHeight and set it , if I not set any value for height before that ?
At example:
var myTxt: TextField = new TextField();
myTxt.text = “Hello world”;

This will create TextField width height maybe 50px. , but if after that I set
myTxt.height = myTxt.textHeight;
everything is ok.
I’m using autoSize , but maybe something is not ok with the height