From: tasn Date: Sun, 1 May 2011 09:40:19 +0000 (+0000) Subject: Elementary entry: Fix hint_min setting to work with scroller. X-Git-Tag: REL_F_I9500_20120323_1~17^2~2805 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8906b82aba3af233071998d9a8756f9dd28e4c4;p=framework%2Fuifw%2Felementary.git Elementary entry: Fix hint_min setting to work with scroller. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@59075 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index 187468f..e1c8eff 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -1110,10 +1110,14 @@ static void _signal_entry_changed(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__) { Widget_Data *wd = elm_widget_data_get(data); + Evas_Coord minh; if (!wd) return; wd->changed = EINA_TRUE; - /* Reset the size hints which are no more relevant. */ - evas_object_size_hint_min_set(data, -1, -1); + /* Reset the size hints which are no more relevant. + * Keep the height, this is a hack, but doesn't really matter + * cause we'll re-eval in a moment. */ + evas_object_size_hint_min_get(data, NULL, &minh); + evas_object_size_hint_min_set(data, -1, minh); _sizing_eval(data); if (wd->text) eina_stringshare_del(wd->text); wd->text = NULL;