Resize the canvas buffer if it is targeted to parent object
[apps/native/widget/widget-edje.git] / src / script_port.c
index 55bb977..4edb759 100644 (file)
@@ -1446,6 +1446,14 @@ PUBLIC int script_update_size(void *han, const char *id, int w, int h)
                return LB_STATUS_ERROR_NOT_EXIST;
        }
 
+       if (!id) {
+               /*!
+                * \note
+                * Need to resize the canvas too
+                */
+               ecore_evas_resize(handle->ee, w, h);
+       }
+
        DbgPrint("Resize object to %dx%d\n", w, h);
        evas_object_resize(edje, w, h);
        return LB_STATUS_SUCCESS;