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.
This commit is contained in:
Andreas Kling 2021-07-07 18:09:35 +02:00
parent 86d0145260
commit fda22c6889
Notes: sideshowbarker 2024-07-18 10:12:37 +09:00

View File

@ -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);