[els_icon.c]Merge opensource els_icon.c bug fix to resolve GUI Builder issue
[framework/uifw/elementary.git] / src / lib / els_icon.c
old mode 100755 (executable)
new mode 100644 (file)
index dc042cb..f32ab4d
@@ -587,6 +587,8 @@ _smart_reconfigure(Smart_Data *sd)
         parent = elm_widget_parent_widget_get(sd->obj);
         if (parent)
           evas_object_size_hint_align_get(parent, &alignh, &alignv);
+        if (alignh == EVAS_HINT_FILL) alignh = 0.5;
+        if (alignv == EVAS_HINT_FILL) alignv = 0.5;
         x = sd->x + ((sd->w - w) * alignh);
         y = sd->y + ((sd->h - h) * alignv);
         evas_object_move(sd->obj, x, y);