PR# 19747 EV_GRID.item_at_virtual_position faulty
Problem Report Summary
Synopsis: EV_GRID.item_at_virtual_position faulty
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)
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.