[TOGoS] [0.17.66] Text-box graphical glitch

This subforum contains all the issues which we already resolved.
kubel34
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Aug 26, 2019 5:48 pm
Contact:

[TOGoS] [0.17.66] Text-box graphical glitch

Post by kubel34 »

A text-box with a style who set "horizontally_stretchable" to "on", will have a grey box appear on the right, if there is at least more than one line of text.
The vertical scroll bar will not appear.

Steps to reproduce:
- Have a text-box style with a "horizontally_stretchable" set to "on":

Code: Select all

data.raw["gui-style"].default["text_box_test"] = {
	type = "textbox_style",
	parent = "textbox",
	horizontally_stretchable = "on"
}
- In game, run this command :

Code: Select all

/c game.player.gui.center.add{type = "text-box", style = "text_box_test", text = "\n"}
The result should look like this:
text_box_bug.png
text_box_bug.png (674 Bytes) Viewed 2703 times
This behaviour is even more weird with a big text-box (minimal_width = 600, minimal_height = 600), as the grey box appears over the text-box, and disappear when you try to type text.

I don't know if a text-box is supposed to be working with the "horizontally_stretchable" style, but this appeared a bit too weird to me.
TOGoS
Former Staff
Former Staff
Posts: 97
Joined: Fri Jun 24, 2016 2:29 pm
Contact:

Re: [TOGoS] [0.17.66] Text-box graphical glitch

Post by TOGoS »

I think what we're seeing is a tiny scrollbar. This should be fixed in 0.17.70. Thanks for the report!
Post Reply

Return to “Resolved Problems and Bugs”