mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:37:45 +00:00
LibGUI: Use full text width for Label's preferred width
A label would prefer to be exactly as wide as its contained text requires. This makes min_width: "fit" work better.
This commit is contained in:
parent
9f5f6b3868
commit
376e7243a9
2 changed files with 9 additions and 2 deletions
|
@ -40,6 +40,7 @@ public:
|
|||
|
||||
virtual Optional<UISize> calculated_preferred_size() const override;
|
||||
int text_calculated_preferred_height() const;
|
||||
int text_calculated_preferred_width() const;
|
||||
|
||||
Gfx::IntRect text_rect() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue