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
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.