You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the text (or value) in the button is longer than its width, the text will overflow the button's bounding box.
Minimal Working Example
-- Basalt configurated installerlocalfilePath="/basalt.lua" --here you can change the file path default: basaltifnot(fs.exists(filePath))thenshell.run("pastebin run ESs1mg7P packed true "..filePath:gsub(".lua", "")) -- this is an alternative to the wget commandendlocalbasalt=require(filePath:gsub(".lua", ""))
localmain=basalt.createFrame("mainFrame")
main:addButton('button')
:setPosition(20, 8)
:setSize(10, 3)
:setValue('some very very long name')
basalt.autoUpdate()
Expected behavior
The text would be "cut off" the bounding box of the button.
Checklist
[✔️] I am running the latest version
The text was updated successfully, but these errors were encountered:
Hm, it's a good idea and maybe i should implement this. I don't expect the user to have a longer text than the button is - but you're right i should cut it off just in case.
Describe the bug
If the text (or
value
) in the button is longer than its width, the text will overflow the button's bounding box.Minimal Working Example
Expected behavior
The text would be "cut off" the bounding box of the button.
![image](https://user-images.githubusercontent.com/43142209/227428241-4219db36-8f5d-48ab-a370-9b3608038036.png)
Checklist
[✔️] I am running the latest version
The text was updated successfully, but these errors were encountered: