Skip to content

Commit

Permalink
Merge pull request #1706 from tarkah/fix/text-input-padding
Browse files Browse the repository at this point in the history
Pad after setting width in text input
  • Loading branch information
hecrj authored Feb 15, 2023
2 parents 8c5996c + a9992d1 commit 0cb72f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/src/widget/text_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 0cb72f6

Please sign in to comment.