efl_ui_bg: fix ELM_BG_OPTION_CENTER bg in left top side.
authorSungtaek Hong <sth253.hong@samsung.com>
Thu, 12 Oct 2017 06:29:39 +0000 (15:29 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 12 Oct 2017 06:29:39 +0000 (15:29 +0900)
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

src/lib/elementary/efl_ui_bg.c

index d12b5fd..2af172a 100644 (file)
@@ -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);
 }