1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-09-18 09:36:19 +00:00

LibGUI: Make GUI::Label auto-sizing declarative

You can now set the "autosize" property on a GUI::Label and it will
automatically update its width preference to fit the text.
This commit is contained in:
Andreas Kling 2020-12-20 12:35:10 +01:00
parent de08e7b8c9
commit 64ba41ea13
4 changed files with 18 additions and 5 deletions

View file

@ -13,8 +13,8 @@
visible: false
@GUI::Label {
name: "location_label"
text: "Location: "
autosize: true
}
@GUI::TextBox {