use evas size hints for image widget internals if internal obj is not edje obj

devs/bu5hm4n/sandbox_fix
Mike Blumenkrantz 5 years ago
parent 0bd73b5a54
commit 28783cfc23
  1. 5
      src/bin/e_widget_image.c

@ -32,7 +32,10 @@ e_widget_image_add_from_object(Evas *evas, Evas_Object *object, int minw, int mi
e_widget_can_focus_set(obj, 0);
wd->minw = minw <= 0 ? minw : 0;
wd->minh = minh <= 0 ? minh : 0;
edje_object_size_min_get(object, &mw, &mh);
if (isedje(object))
edje_object_size_min_get(object, &mw, &mh);
else
evas_object_size_hint_min_get(object, &mw, &mh);
if (minw || minh)
e_widget_size_min_set(obj, minw, minh);
else

Loading…
Cancel
Save