PR# 19747 EV_GRID.item_at_virtual_position faulty

Problem Report Summary
Submitter: HowardThomsonSurrey
Category: EiffelVision
Priority: Low
Date: 2021/04/30
Class: Bug
Severity: Non-critical
Number: 19747
Release: 20.11
Confidential: No
Status: Open
Responsible:
Environment: linux
Synopsis: EV_GRID.item_at_virtual_position faulty

Description
In an event attached to EV_GRID.pointer_button_press_actions, the routine item_at_virtual_position (a_x, a_y) using the x/y positions from the event should identifiy
the item in which the event happened.
For my code, using Eiffel 20.11, I only get the correct result for (a_x, a_y - header.height)
To Reproduce
I intend to submit a minimal test program that demonstrates the inconsistency ...
Problem Report Interactions
From:HowardThomsonSurrey    Date:2021/04/30    Status: Open    Download   
EV_GRID.item_at_virtual_position only gives the correct result, i.e. reports the item for which the event
actually happened, if the 'y' argument from the event is adjusted by the height of the header.

Attachment: about_dialog.e     Size:3613
Attachment: application.e     Size:1247
Attachment: ev_custom_grid.e     Size:2253
Attachment: ev_custom_grid_item.e     Size:440
Attachment: ev_grid_bugs.ecf     Size:1186
Attachment: interface_names.e     Size:1289
Attachment: main_window.e     Size:5515