From b64672906613246fdbe14ef7d6bfe86d6f169d7e Mon Sep 17 00:00:00 2001 From: woohyun Date: Tue, 4 Oct 2011 11:40:52 +0000 Subject: [PATCH] edje/edje_entry : When CURSOR_MODE_BEFORE, the width of cursor edje object should be considered. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@63806 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/edje_entry.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/edje_entry.c b/src/lib/edje_entry.c index d642808..b27bfff 100644 --- a/src/lib/edje_entry.c +++ b/src/lib/edje_entry.c @@ -2431,6 +2431,8 @@ _edje_entry_cursor_geometry_get(Edje_Real_Part *rp, Evas_Coord *cx, Evas_Coord * evas_object_geometry_get(rp->object, &x, &y, &w, &h); evas_textblock_cursor_geometry_get(en->cursor, &xx, &yy, &ww, &hh, NULL, cur_type); if (ww < 1) ww = 1; + if (rp->part->cursor_mode == EDJE_ENTRY_CURSOR_MODE_BEFORE) + edje_object_size_min_restricted_calc(en->cursor_fg, &ww, NULL, ww, 0); if (hh < 1) hh = 1; if (cx) *cx = x + xx; if (cy) *cy = y + yy; -- 2.7.4