Basalt icon indicating copy to clipboard operation
Basalt copied to clipboard

bug: XML labels not automatically resizing

Open Flerpharos opened this issue 2 years ago • 0 comments

What happened?

When labels are used with XML, they terminate unexpectedly. This occurs whether or not a space is present in the string, leading me to believe that the XML has a default size parameter that it sets, instead of calculating the size from the label text.

image

I tested this on CraftOS PC, as well as in 1.19.2 CC:Tweaked.

MRE:

local basalt = require("basalt")

basalt.createFrame():loadLayout("test.xml")
basalt.autoUpdate()

test.xml

<label text="HelloWorld" y="1" />
<label text="Hello World" y="2" />
<label text="HelloWorld" y="3" width="10" />
<label text="Hello World" y="4" width = "11" />

Computercraft client

Ingame (Default)

Relevant log output

No response

Latest Basalt Version

  • [X] I use the latest stable version

Flerpharos avatar Dec 05 '23 08:12 Flerpharos