From dc4e89596a69482c79228aff0bd36cd19c319a8e Mon Sep 17 00:00:00 2001 From: Aadil127 <211808495+Aadil127@users.noreply.github.com> Date: Tue, 9 Jun 2026 16:10:46 +0530 Subject: [PATCH] Fix progress says consistant for different girth values. --- src/widget/progress_bar/linear.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widget/progress_bar/linear.rs b/src/widget/progress_bar/linear.rs index 16ed5fb..4c51a71 100644 --- a/src/widget/progress_bar/linear.rs +++ b/src/widget/progress_bar/linear.rs @@ -203,7 +203,8 @@ where < border.radius.top_left.max(border.radius.bottom_left) && !marker_segment { - (width * bounds.width * 2.0).min(bounds.height) + (bounds.height - (2.0 * radius).min(bounds.height) + width * bounds.width * 2.0) + .min(bounds.height) } else { bounds.height };