Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
TextField alignment issue - Gideros Forum

TextField alignment issue

I'm having an issue with aligning a TextField in my current project...
  y += 50
  text = TextField.new(SMALLFONT, '(C) 2018 ANTIX DEVELOPMENT')
  text:setLayout({w = WIDTH, flags = FontBase.TLF_CENTER})
  text:setY(y)
--  text:setX(-16)
  text:setTextColor(MAINMENUCOLOR)
  window:addChild(text)
The code above yields the following result..


You can see the text on the last line (and the rest I suppose) is not aligned in the center. If I setX(-16) it's okay but by default it should be in the middle right?
image.png
656 x 1029 - 39K
+1 -1 (+1 / -0 ) Share on Facebook

Comments

Sign In or Register to comment.