Page 1 of 1

[TOGoS] [0.17.66] bad prompt position with focus on LuaGuiElement textfield

Posted: Mon Aug 26, 2019 9:03 pm
by Helfima
bad prompt position with focus on LuaGuiElement textfield
my text is the right side and the prompt is left :P
if I tape the prompt return in right side but it's strange
bad_focus.PNG
bad_focus.PNG (13.06 KiB) Viewed 2924 times

Code: Select all

display_panel = ElementGui.addGuiText(keyboard_panel,self:classname().."=compute=ID=",calculator_value,"helmod_textfield_calculator")
  --display_panel.style.horizontally_stretchable = true
  display_panel.style.width=155
  display_panel.style.horizontal_align = "right"
  display_panel.focus()

Re: [0.17.66] bad prompt position with focus on LuaGuiElement textfield

Posted: Tue Aug 27, 2019 11:52 am
by Therenas
I've run into this too, it probably has to do with the alignment, because it happens for 'center' as well.

Re: [TOGoS] [0.17.66] bad prompt position with focus on LuaGuiElement textfield

Posted: Wed Oct 02, 2019 6:32 pm
by TOGoS
The TextBox code is surprisingly complicated, so this took a while to fix. Should work more properly in 0.17.70, though. Thanks for the report!