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:
parent
de08e7b8c9
commit
64ba41ea13
4 changed files with 18 additions and 5 deletions
|
@ -13,8 +13,8 @@
|
|||
visible: false
|
||||
|
||||
@GUI::Label {
|
||||
name: "location_label"
|
||||
text: "Location: "
|
||||
autosize: true
|
||||
}
|
||||
|
||||
@GUI::TextBox {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue