From 5f5e0c286e861ca43303a06456c3e0176bba8ec2 Mon Sep 17 00:00:00 2001 From: StillGreen-san <40620628+stillgreen-san@users.noreply.github.com> Date: Tue, 3 Sep 2024 18:47:08 +0200 Subject: [PATCH] fix max width being reduced by padding in number_input --- src/widget/number_input.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/widget/number_input.rs b/src/widget/number_input.rs index ae670ed8..760f4759 100644 --- a/src/widget/number_input.rs +++ b/src/widget/number_input.rs @@ -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);