double xw, yw;
if (!wd) return;
- evas_object_size_hint_min_get(wd->content, &minw, &minh);
- evas_object_size_hint_max_get(wd->content, &maxw, &maxh);
- evas_object_size_hint_weight_get(wd->content, &xw, &yw);
+ if (wd->content)
+ {
+ evas_object_size_hint_min_get(wd->content, &minw, &minh);
+ evas_object_size_hint_max_get(wd->content, &maxw, &maxh);
+ evas_object_size_hint_weight_get(wd->content, &xw, &yw);
+ }
if (wd->scr)
{
elm_smart_scroller_child_viewport_size_get(wd->scr, &vw, &vh);
else if ((maxh > 0) && (vh > maxh)) vh = maxh;
}
else if (minh > 0) vh = minh;
- evas_object_resize(wd->content, vw, vh);
+ if (wd->content) evas_object_resize(wd->content, vw, vh);
w = -1;
h = -1;
edje_object_size_min_calc(elm_smart_scroller_edje_object_get(wd->scr), &vmw, &vmh);
elm_smart_scroller_child_viewport_size_get(Evas_Object *obj, Evas_Coord *w, Evas_Coord *h)
{
API_ENTRY return;
+ if (!sd->pan_obj) return;
edje_object_calc_force(sd->edje_obj);
evas_object_geometry_get(sd->pan_obj, NULL, NULL, w, h);
}