From f6c8508de0da877427ef741f95f00205227e4f77 Mon Sep 17 00:00:00 2001 From: woohyun Date: Fri, 4 Nov 2011 05:05:53 +0000 Subject: [PATCH] elementary/elm_entry : When singlelined & scrolled, entry's min width should be calculated by text's width not by wd->ent's geometry info. So I modified this. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@64721 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_entry.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index 1b1b36a..1c53546 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -595,8 +595,9 @@ _elm_deferred_recalc_job(void *data) evas_object_geometry_get(wd->ent, NULL, NULL, &resw, NULL); edje_object_size_min_restricted_calc(wd->ent, &minw, &minh, resw, 0); - elm_coords_finger_size_adjust(1, &minw, 1, &minh); - wd->entmw = minw; + edje_object_size_min_restricted_calc(wd->ent, &fw, &fh, 0, 0); + elm_coords_finger_size_adjust(1, &fw, 1, &minh); + wd->entmw = fw; wd->entmh = minh; /* This is a hack to workaround the way min size hints are treated. * If the minimum width is smaller than the restricted width, it means -- 2.7.4