Fix scrolled entry sizing eval when change style

SVN revision: 54126
This commit is contained in:
Tiago Rezende Campos Falcao 2010-11-03 17:22:42 +00:00
parent 320e743304
commit c911a2c5b2
1 changed files with 1 additions and 8 deletions

View File

@ -140,21 +140,14 @@ static void
_sizing_eval(Evas_Object *obj)
{
Widget_Data *wd;
Evas_Coord minw, minh, maxw, maxh, tmpw, tmph;
Evas_Coord minw, minh, maxw, maxh;
wd = elm_widget_data_get(obj);
if (!wd)
return;
evas_object_size_hint_max_get(obj, &maxw, &maxh);
evas_object_size_hint_min_get(obj, &tmpw, &tmph);
evas_object_size_hint_min_get(wd->scroller, &minw, &minh);
if (tmpw > minw)
minw = tmpw;
if (tmph > minh)
minh = tmph;
evas_object_size_hint_min_set(obj, minw, minh);
if (wd->single_line)
evas_object_size_hint_max_set(obj, maxw, minh);