Merge pull request #1706 from tarkah/fix/text-input-padding
Pad after setting width in text input
This commit is contained in:
commit
0cb72f6971
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue