edje/edje_entry : When CURSOR_MODE_BEFORE, the width of cursor edje
authorwoohyun <woohyun@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 4 Oct 2011 11:40:52 +0000 (11:40 +0000)
committerwoohyun <woohyun@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 4 Oct 2011 11:40:52 +0000 (11:40 +0000)
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

index d642808..b27bfff 100644 (file)
@@ -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;