From 8a91b90258cc5b22414e657d1f6629d2bf04991c Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 17 Aug 2019 15:01:45 +0200 Subject: [PATCH] GTableView: Fix column resize cursor not showing up in scrolled tables If the table was scrolled somewhat, we'd stop showing the resize cursor when hovering the mouse cursor between two table column headers. --- Libraries/LibGUI/GTableView.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/LibGUI/GTableView.cpp b/Libraries/LibGUI/GTableView.cpp index 503110fddb..1905951128 100644 --- a/Libraries/LibGUI/GTableView.cpp +++ b/Libraries/LibGUI/GTableView.cpp @@ -214,10 +214,9 @@ void GTableView::mousemove_event(GMouseEvent& event) return; } - auto adjusted_position = this->adjusted_position(event.position()); if (event.buttons() == 0) { for (int i = 0; i < model()->column_count(); ++i) { - if (column_resize_grabbable_rect(i).contains(adjusted_position)) { + if (column_resize_grabbable_rect(i).contains(event.position())) { window()->set_override_cursor(GStandardCursor::ResizeHorizontal); return; }