From 142be2ea66611137117fad15d563f37b9b7f3fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vuka=C5=A1in=20Vojinovi=C4=87?= <150025636+git-f0x@users.noreply.github.com> Date: Sat, 13 Jul 2024 18:02:51 +0200 Subject: [PATCH] comment workaround When these lines are uncommented, a scroll bar always shows up in Files. Commenting them makes the scollbar behave as expected. --- src/tab.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tab.rs b/src/tab.rs index 84990bc..f8f8082 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -2384,7 +2384,7 @@ impl Tab { children.push(grid.into()); //TODO: HACK If we don't reach the bottom of the view, go ahead and add a spacer to do that - { + /*{ let mut max_bottom = 0; for (_, item) in items { if let Some(rect) = item.rect_opt.get() { @@ -2403,7 +2403,7 @@ impl Tab { .into(), ) } - } + }*/ } ( @@ -2778,14 +2778,14 @@ impl Tab { } } //TODO: HACK If we don't reach the bottom of the view, go ahead and add a spacer to do that - { + /*{ let spacer_height = size.height as i32 - y as i32 - 4 * space_xxs as i32; if spacer_height > 0 { children.push( widget::container(vertical_space(Length::Fixed(spacer_height as f32))).into(), ); } - } + }*/ let drag_col = (!drag_items.is_empty()).then(|| { Element::from(widget::column::with_children(drag_items)) .map(|m| cosmic::app::Message::App(crate::app::Message::TabMessage(None, m)))