diff options
authorDaniel Hirt <>2014-01-28 14:36:38 +0000
committerTom Hacohen <>2014-01-28 14:44:34 +0000
commit0b4b26d921cd3835d0ac9e0e8a68750e0c0d74e1 (patch)
parent390f0632ea2ea13646f0e20665cc45e788d05f99 (diff)
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: TAsn: Commit message edited by me.
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c
index 09bca31e3..a8a206af6 100644
--- a/src/lib/elm_entry.c
+++ b/src/lib/elm_entry.c
@@ -1941,7 +1941,9 @@ _signal_anchor_geoms_do_things_with_lol(Elm_Entry_Smart_Data *sd,
1941 1941
1942 if (!geoms) return; 1942 if (!geoms) return;
1943 1943
1944 evas_object_geometry_get(sd->entry_edje, &x, &y, NULL, NULL); 1944 evas_object_geometry_get(
1945 edje_object_part_object_get(sd->entry_edje, "elm.text"),
1946 &x, &y, NULL, NULL);
1945 evas_pointer_canvas_xy_get 1947 evas_pointer_canvas_xy_get
1946 (evas_object_evas_get(sd->entry_edje), &px, &py); 1948 (evas_object_evas_get(sd->entry_edje), &px, &py);
1947 1949