From 1f35c2363a7d96bb4108ad189d636a5f189bd62c Mon Sep 17 00:00:00 2001 From: Sungtaek Hong Date: Thu, 23 Nov 2017 15:43:23 -0800 Subject: [PATCH] efl_ui_bg: fix unclipped image on EFL_UI_IMAGE_SCALE_TYPE_NONE @fix Summary: efl_ui_bg has internal image and image may be larger than resize_obj when EFL.UI.IMAGE.SCALE_TYPE is none. Now resize_obj clips the internal image. Test Plan: 1.Run elementary_test, part background(will be added soon) 2.Create a bg in a box with other widgets. Set bg as EFL_UI_IMAGE_SCALYE_TYPE_NONE. Reviewers: jpeg, cedric Reviewed By: cedric Subscribers: woohyun Differential Revision: https://phab.enlightenment.org/D5509 Signed-off-by: Cedric Bail --- data/elementary/themes/edc/elm/bg.edc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/data/elementary/themes/edc/elm/bg.edc b/data/elementary/themes/edc/elm/bg.edc index ed5034f92d..48bdfcdedc 100644 --- a/data/elementary/themes/edc/elm/bg.edc +++ b/data/elementary/themes/edc/elm/bg.edc @@ -10,6 +10,10 @@ group { name: "elm/bg/base/default"; data.item: "version" "119"; images.image: "bevel_dark_out.png" COMP; parts { + part { name: "clipper"; type: RECT; + description { state: "default" 0.0; + } + } part { name: "base"; type: RECT; description { state: "default" 0.0; color_class: "dialog_base"; @@ -21,7 +25,9 @@ group { name: "elm/bg/base/default"; } } part { name: "elm.swallow.background"; type: SWALLOW; + clip_to: "clipper"; description { state: "default" 0.0; + fixed: 1 1; } } part { name: "bevel";