Elm entry: Fixed a bug with sizing of internal textblock.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 29 Jan 2012 11:55:29 +0000 (11:55 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 29 Jan 2012 11:55:29 +0000 (11:55 +0000)
It should resize to be *at least* the min height, not always the min height.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@67583 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_entry.c

index 685e458..d9d4400 100644 (file)
@@ -739,8 +739,8 @@ _sizing_eval(Evas_Object *obj)
 
              elm_smart_scroller_child_viewport_size_get(wd->scroller, &vw, &vh);
 
-             if ((minw > 0) && (vw < minw)) vw = minw;
-             if (minh > 0) vh = minh;
+             if (minw > vw) vw = minw;
+             if (minh > vh) vh = minh;
 
              evas_object_resize(wd->ent, vw, vh);
              edje_object_size_min_calc