tasn pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=53b172ef039a2da04aa3b28283f5935e320fe5bc
commit 53b172ef039a2da04aa3b28283f5935e320fe5bc Author: indefini <ch...@indefini.org> Date: Mon Nov 23 16:44:57 2015 +0000 Entry focus region : if single line, show the whole object. Summary: If the entry is a single line, rather than return the cursor height, it is better to return the height of the object. Reviewers: herdsman, tasn Differential Revision: https://phab.enlightenment.org/D3169 --- src/lib/elm_entry.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index c1984a8..147a809 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -1185,6 +1185,13 @@ _elm_entry_elm_widget_on_focus_region(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd, E { edje_object_part_text_cursor_geometry_get (sd->entry_edje, "elm.text", x, y, w, h); + + if (sd->single_line) + { + evas_object_geometry_get(sd->entry_edje, NULL, NULL, NULL, h); + if (y) *y = 0; + } + return EINA_TRUE; } --