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

This subforum contains all the issues which we already resolved.
Post Reply
Helfima
Fast Inserter
Fast Inserter
Posts: 199
Joined: Tue Jun 28, 2016 11:40 am
Contact:

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

Post 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 2486 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()

User avatar
Therenas
Factorio Staff
Factorio Staff
Posts: 232
Joined: Tue Dec 11, 2018 2:10 pm
Contact:

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

Post by Therenas »

I've run into this too, it probably has to do with the alignment, because it happens for 'center' as well.

TOGoS
Former Staff
Former Staff
Posts: 93
Joined: Fri Jun 24, 2016 2:29 pm
Contact:

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

Post 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!

Post Reply

Return to “Resolved Problems and Bugs”