TextfieldAutoSize not working with html5 target?

Hello,

I’m using textfield.autosize in a project targeting flash and html5 :

var txt:TextField = new TextField();
txt.autoSize = TextFieldAutoSize.LEFT;
txt.border = true;
txt.text = "Hello world";
addChild(txt);

No problem with flash but html5 target does not seem to make the resize correctly :

(flash on top and html5 in bottom)

Any idea ?

Thank you

Jonas

Hi!

See here:

http://community.openfl.org/t/the-textfield-doesnot-autosize-on-html5-target/?source_topic_id=1714

:slight_smile:

1 Like

Great! I replace the file and it works as expected.
Is there another way to obtain the fix until we have a new version available in haxelib? (I just arrived from Actionscript)
Use the git as library ?

Thank you.

Jonas

You could use a development version of Lime and/or OpenFL, but I’m going to make a release, probably, today, so that might help too :slight_smile: