Textfield background position


I’ve started learning openfl & haxe and I came across this problem with background position of the Textfield. This is simple code that I’m trying to run:

  var btn = new TextField();
  var font_size = 50;
  btn.defaultTextFormat = new TextFormat(
        Assets.getFont("fonts/IMMORTAL.ttf").fontName, font_size);

  btn.border = true;
  btn.background = true;
  btn.backgroundColor = 0xababab;
  btn.width = 600;
  btn.height = 60;
  btn.text = 'lorem ipsum’;
  btn.x = 50;
  btn.y = 50;


Background is rendered in bad position compared to text. This occurs with neko target but it looks ok in html5 and flash.

I’m on OS X 10.9.5, openfl 3.0.8

PS. Is it a good way to make buttons?

Work on text is ongoing right now with a big refactor, hopefully this should turn out well once we’re done :slight_smile:

Ok, that’s good news. Keep up the good work :wink:

I think this is resolved now in the development, will go out in the next release :slight_smile: