diff options
authorDaniel Hirt <>2014-01-28 14:36:38 +0000
committerTom Hacohen <>2014-01-28 14:43:43 +0000
commit74ebe12654182b8f4e3a70b5c6bd33f8382c821a (patch)
parentf731f2ed435431d8563c27597644ea328df260b4 (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 9e61a16f9..01b3e80cb 100644
--- a/src/lib/elm_entry.c
+++ b/src/lib/elm_entry.c
@@ -1960,7 +1960,9 @@ _signal_anchor_geoms_do_things_with_lol(Elm_Entry_Smart_Data *sd,
1960 1960
1961 if (!geoms) return; 1961 if (!geoms) return;
1962 1962
1963 evas_object_geometry_get(sd->entry_edje, &x, &y, NULL, NULL); 1963 evas_object_geometry_get(
1964 edje_object_part_object_get(sd->entry_edje, "elm.text"),
1965 &x, &y, NULL, NULL);
1964 evas_pointer_canvas_xy_get 1966 evas_pointer_canvas_xy_get
1965 (evas_object_evas_get(sd->entry_edje), &px, &py); 1967 (evas_object_evas_get(sd->entry_edje), &px, &py);
1966 1968