From 1ab7615335a8484c82db6e4b481cbf70ba5268e7 Mon Sep 17 00:00:00 2001 From: ellieplayswow <164806095+ellieplayswow@users.noreply.github.com> Date: Mon, 10 Mar 2025 09:08:37 +0000 Subject: [PATCH] Fixing incorrect height calculation on scrollable --- src/app.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index e2bfa95..ea9f6de 100644 --- a/src/app.rs +++ b/src/app.rs @@ -4337,8 +4337,9 @@ impl Application for App { .control( widget::scrollable(column).height(if let Some(size) = self.size { let max_size = size.height - 256.0; + // (32 (item_height) + 5.0 (custom button padding)) + (space_xxs (list item spacing) * 2) let scrollable_height = available_programs.len() as f32 - * (item_height + (2.0 * space_xxs as f32)); + * (item_height + 5.0 + (2.0 * space_xxs as f32)); if scrollable_height > max_size { Length::Fill