From 9fce89e7bb5e58604604dac8b0a6b9bfda7e77f1 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sun, 1 May 2011 09:40:19 +0000 Subject: [PATCH] Elementary entry: Fix hint_min setting to work with scroller. SVN revision: 59075 --- legacy/elementary/src/lib/elm_entry.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/legacy/elementary/src/lib/elm_entry.c b/legacy/elementary/src/lib/elm_entry.c index 187468f23b..e1c8eff313 100644 --- a/legacy/elementary/src/lib/elm_entry.c +++ b/legacy/elementary/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;