Merge pull request #1706 from tarkah/fix/text-input-padding

Pad after setting width in text input
This commit is contained in:
Héctor Ramón 2023-02-15 15:36:00 +01:00 committed by GitHub
commit 0cb72f6971
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -389,8 +389,8 @@ where
let padding = padding.fit(Size::ZERO, limits.max());
let limits = limits
.pad(padding)
.width(width)
.pad(padding)
.height(Length::Units(text_size));
let mut text = layout::Node::new(limits.resolve(Size::ZERO));