mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 00:02:03 +02:00
Gtk2: include scrollbars offset in TGtk2WSCustomListView.getItemAt(). issue #26767
git-svn-id: trunk@46307 -
This commit is contained in:
parent
549845087a
commit
89f68bf251
@ -1869,7 +1869,8 @@ begin
|
||||
else
|
||||
if GTK_IS_ICON_VIEW(Widgets^.MainView) then
|
||||
begin
|
||||
ItemPath := gtk_icon_view_get_path_at_pos(PGtkIconView(Widgets^.MainView), x, y);
|
||||
ItemPath := gtk_icon_view_get_path_at_pos(PGtkIconView(Widgets^.MainView),
|
||||
x + Widgets^.ScrollingData.HValue, y + Widgets^.ScrollingData.VValue);
|
||||
if ItemPath <> nil then
|
||||
begin
|
||||
Result := gtk_tree_path_get_indices(ItemPath)^;
|
||||
|
Loading…
Reference in New Issue
Block a user