Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: XML labels not automatically resizing #100

Open
1 task done
Flerpharos opened this issue Dec 5, 2023 · 0 comments
Open
1 task done

bug: XML labels not automatically resizing #100

Flerpharos opened this issue Dec 5, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Flerpharos
Copy link

Flerpharos commented Dec 5, 2023

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

  • I use the latest stable version
@Flerpharos Flerpharos added the bug Something isn't working label Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant