e_comp_object: resize the effect/input/mask object when parent object is shown.
authorSeunghun Lee <shiin.lee@samsung.com>
Mon, 18 Jan 2016 04:43:14 +0000 (13:43 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Thu, 21 Jan 2016 07:20:11 +0000 (16:20 +0900)
there is a issue that effect/input/mask object can't be resized,
in case we resize the parent object before show it.
to fix this issue, we should resize the objects, when parent object is shown.

Change-Id: I6a608dbace1ba8f73101404e8959a6ca6566635f

src/bin/e_comp_object.c

index fa4f820..13f42bf 100644 (file)
@@ -1741,6 +1741,15 @@ _e_comp_intercept_show(void *data, Evas_Object *obj EINA_UNUSED)
         evas_object_color_set(cw->clip, ec->netwm.opacity, ec->netwm.opacity, ec->netwm.opacity, ec->netwm.opacity);
      }
 
+   evas_object_geometry_set(cw->effect_obj, cw->x, cw->y, cw->w, cw->h);
+   if (cw->input_obj)
+     evas_object_geometry_set(cw->input_obj,
+       cw->x + cw->input_rect.x + (!!cw->frame_object * cw->client_inset.l),
+       cw->y + cw->input_rect.y + (!!cw->frame_object * cw->client_inset.t),
+       cw->input_rect.w, cw->input_rect.h);
+   if (cw->mask_obj)
+     evas_object_resize(cw->mask_obj, cw->w, cw->h);
+
    _e_comp_intercept_show_helper(cw);
 }