From fda22c6889a332890101d4885016f641a22f9213 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 7 Jul 2021 18:09:35 +0200 Subject: [PATCH] FileManager: Fix Desktop rubber-banding getting clipped at the edge The issue was that the desktop IconView has Gfx::FrameShape::NoFrame as its frame shape, but with a non-zero frame_thickness(). This caused us to not render a frame, but to include one in the selection boundary calculations. Fix this by setting the desktop icon view's frame thickness to 0. Fixes #8525. --- Userland/Applications/FileManager/DirectoryView.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Applications/FileManager/DirectoryView.cpp b/Userland/Applications/FileManager/DirectoryView.cpp index 8dcb7bd20b..763dbdb56f 100644 --- a/Userland/Applications/FileManager/DirectoryView.cpp +++ b/Userland/Applications/FileManager/DirectoryView.cpp @@ -253,6 +253,7 @@ void DirectoryView::setup_icon_view() if (is_desktop()) { m_icon_view->set_frame_shape(Gfx::FrameShape::NoFrame); + m_icon_view->set_frame_thickness(0); m_icon_view->set_scrollbars_enabled(false); m_icon_view->set_fill_with_background_color(false); m_icon_view->set_draw_item_text_with_shadow(true);