elfe: genlist item size is 1/4 of the height for landscape resolutions

SVN revision: 57276
This commit is contained in:
Nicolas Aguirre 2011-02-23 20:03:23 +00:00
parent 341438861d
commit 5cacaac1ce
1 changed files with 3 additions and 1 deletions

View File

@ -116,7 +116,9 @@ _list_resize_cb(void *data , Evas *e , Evas_Object *obj, void *event_info )
Evas_Coord size = 0;
evas_object_geometry_get(obj, NULL, NULL, &w, &h);
size = w / 4;
(h > w) ? (size = w / 4) : (size = h / 4);
elm_gengrid_item_size_set(obj, size, size);
}