forked from enlightenment/efl
elm entry: Fix anchor bug finding wrong anchor geometry.
Summary: Fix a bug with finding the proper geometry when reporting anchor interaction. It's easy to see in entry anchor2 test in elementary_test when clicking on the lower border of the anchor. Anchor geometries are relative to the textblock object. The problem was that this was accounted for using the edje object's geometry instead of the textblock geometry thus causing an offset. Reviewers: JackDanielZ, tasn CC: seoz Differential Revision: https://phab.enlightenment.org/D436 TAsn: Commit message edited by me.
This commit is contained in:
parent
70782a358b
commit
2f5a0068fd
|
@ -1960,7 +1960,9 @@ _signal_anchor_geoms_do_things_with_lol(Elm_Entry_Smart_Data *sd,
|
|||
|
||||
if (!geoms) return;
|
||||
|
||||
evas_object_geometry_get(sd->entry_edje, &x, &y, NULL, NULL);
|
||||
evas_object_geometry_get(
|
||||
edje_object_part_object_get(sd->entry_edje, "elm.text"),
|
||||
&x, &y, NULL, NULL);
|
||||
evas_pointer_canvas_xy_get
|
||||
(evas_object_evas_get(sd->entry_edje), &px, &py);
|
||||
|
||||
|
|
Loading…
Reference in New Issue