From: Sungtaek Hong Date: Thu, 12 Oct 2017 06:29:39 +0000 (+0900) Subject: efl_ui_bg: fix ELM_BG_OPTION_CENTER bg in left top side. X-Git-Tag: submit/sandbox/upgrade/efl120/20180319.053334~2322 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b4f674a0d626d99ce59ab54c6f563643a4b3397;p=platform%2Fupstream%2Fefl.git efl_ui_bg: fix ELM_BG_OPTION_CENTER bg in left top side. Summary: - setting size_hint_min logic was deleted while changed elm_bg to efl_ui_bg. - this sets size_hint_min again. @fix Test Plan: 1. Run Elementary test 2. Run Bg Option 3. Select Center radio. 4. Resize windows. 5. Observe bg images remains in center. Reviewers: jpeg, JackDanielZ Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5281 --- diff --git a/src/lib/elementary/efl_ui_bg.c b/src/lib/elementary/efl_ui_bg.c index d12b5fd..2af172a 100644 --- a/src/lib/elementary/efl_ui_bg.c +++ b/src/lib/elementary/efl_ui_bg.c @@ -81,6 +81,7 @@ _efl_ui_bg_elm_layout_sizing_eval(Eo *obj, Efl_Ui_Bg_Data *sd) evas_object_image_fill_set(sd->img, fx, fy, fw, fh); + evas_object_size_hint_min_set(sd->img, mw, mh); evas_object_size_hint_max_set(sd->img, mw, mh); }