Skip to content

Commit

Permalink
fix max width being reduced by padding in number_input
Browse files Browse the repository at this point in the history
  • Loading branch information
StillGreen-san committed Sep 3, 2024
1 parent 5482588 commit 5f5e0c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/widget/number_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,7 @@ where
let num_size = self.size();
let limits = limits
.width(num_size.width)
.height(Length::Shrink)
.shrink(self.padding);
.height(Length::Shrink);
let content = self
.content
.layout(&mut tree.children[0], renderer, &limits);
Expand Down

0 comments on commit 5f5e0c2

Please sign in to comment.