From 5a9bbaff9b27c5d4db0cc7774c268f71f7b31812 Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Sun, 5 Jan 2014 13:06:45 +0900 Subject: [PATCH] Resize the canvas buffer if it is targeted to parent object Change-Id: I5041016dbcce561658adbce7306e06b1019706ad --- packaging/liblivebox-edje.spec | 2 +- src/script_port.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/packaging/liblivebox-edje.spec b/packaging/liblivebox-edje.spec index 00e98a7..2730373 100644 --- a/packaging/liblivebox-edje.spec +++ b/packaging/liblivebox-edje.spec @@ -1,6 +1,6 @@ Name: liblivebox-edje Summary: EDJE Script loader for the data provider master -Version: 0.6.0 +Version: 0.6.1 Release: 1 Group: HomeTF/Livebox License: Flora diff --git a/src/script_port.c b/src/script_port.c index 55bb977..4edb759 100644 --- a/src/script_port.c +++ b/src/script_port.c @@ -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; -- 2.7.4