elm genlist: Partial revert of my wrong commit r75161.

SVN revision: 75180
This commit is contained in:
Daniel Juyung Seo 2012-08-12 23:56:37 +00:00
parent b3319660b6
commit a9e899f9a2
1 changed files with 1 additions and 10 deletions

View File

@ -577,31 +577,23 @@ _elm_genlist_smart_sizing_eval(Evas_Object *obj)
ELM_GENLIST_DATA_GET(obj, sd);
static int i = 0;
/* parent class' early call */
if (!sd->s_iface) return;
if (sd->on_sub_del) return;;
fprintf(stderr, "%s %d\t", __func__, i++);
evas_object_size_hint_min_get(obj, &minw, &minh);
evas_object_size_hint_min_get(obj, &minw, NULL);
evas_object_size_hint_max_get(obj, &maxw, &maxh);
fprintf(stderr, "minw %d minh %d maxw %d maxh %d\t", minw, minh, maxw, maxh);
edje_object_size_min_calc(ELM_WIDGET_DATA(sd)->resize_obj, &vmw, &vmh);
fprintf(stderr, "edje vmw %d vmh %d\t", vmw, vmh);
if (sd->mode == ELM_LIST_COMPRESS)
{
Evas_Coord vw, vh;
sd->s_iface->content_viewport_size_get(obj, &vw, &vh);
fprintf(stderr, "viewport vw %d vh %d", vw, vh);
if ((vw != 0) && (vw != sd->prev_viewport_w))
{
fprintf(stderr, "\n\t prev_viewport_w %d", sd->prev_viewport_w);
Item_Block *itb;
sd->prev_viewport_w = vw;
@ -629,7 +621,6 @@ fprintf(stderr, "\n\t prev_viewport_w %d", sd->prev_viewport_w);
evas_object_size_hint_min_set(obj, minw, minh);
evas_object_size_hint_max_set(obj, maxw, maxh);
fprintf(stderr, "\n\tminw %d minh %d", minw, minh);
}
static void