From: Wonguk Jeong Date: Mon, 24 Mar 2014 06:59:35 +0000 (+0900) Subject: datetime: clip sub components into global clipper X-Git-Tag: v1.10.0+tech+preview~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=da77baab86477e741b49d1e7338e32ab402849f5;p=platform%2Fupstream%2Felementary.git datetime: clip sub components into global clipper Summary: Sub components(fields, disable clippers) were shown even if datetime object has no size (0, 0). To resolve the problem, I made a global clipper, @fix Test Plan: 1. create datetime object. 2. evas_object_show without size. --> datetime object shouldn't be shown Reviewers: raster, seoz, woohyun, Hermet CC: seoz Differential Revision: https://phab.enlightenment.org/D655 --- diff --git a/data/themes/edc/elm/datetime.edc b/data/themes/edc/elm/datetime.edc index 16b5d59..6e86d5a 100644 --- a/data/themes/edc/elm/datetime.edc +++ b/data/themes/edc/elm/datetime.edc @@ -2,6 +2,7 @@ part { \ name: "field"#_pos; type: SWALLOW; \ scale: 1; \ + clip_to: "clip"; \ description { state: "default" 0.0; \ visible: 0; \ min: 0 0; \ @@ -102,7 +103,14 @@ } group { name: "elm/datetime/base/default"; parts { + part { name: "clip"; type: RECT; + description { state: "default" 0.0; + rel1.to: "separator0"; + rel2.to: "separator7"; + } + } part { name: "disclip"; type: RECT; + clip_to: "clip"; description { state: "default" 0.0; rel1.to: "separator0"; rel2.to: "separator7"; @@ -113,6 +121,7 @@ group { name: "elm/datetime/base/default"; } } part { name: "disclip2"; type: RECT; + clip_to: "clip"; description { state: "default" 0.0; rel1.to: "separator0"; rel2.to: "separator7";