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 installer
local filePath = "/basalt.lua" --here you can change the file path default: basalt
if not(fs.exists(filePath))then
shell.run("pastebin run ESs1mg7P packed true "..filePath:gsub(".lua", "")) -- this is an alternative to the wget command
end
local basalt = require(filePath:gsub(".lua", ""))
local main = 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.
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.
Checklist
[✔️] I am running the latest version