efl_ui_popup: cover the corner case of popup sizing evaluation
authorTaehyub Kim <taehyub.kim@samsung.com>
Thu, 31 Aug 2017 04:17:56 +0000 (13:17 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Tue, 28 Nov 2017 08:15:42 +0000 (17:15 +0900)
Summary: cover the corner case of popup sizing evaluation

Test Plan: 1. run elementary_test -to efluipopup

Reviewers: Jaehyun_Cho, jpeg, thiepha, Blackmole, woohyun, cedric

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D5146

src/lib/elementary/efl_ui_popup.c

index 1f40576..7de893e 100644 (file)
@@ -191,7 +191,7 @@ _efl_ui_popup_elm_layout_sizing_eval(Eo *obj, Efl_Ui_Popup_Data *pd EINA_UNUSED)
      evas_object_resize(obj, minw, h);
    else if ((minw < w) && (minh > h))
      evas_object_resize(obj, w, minh);
-   else if ((minw > w) && (minh > h))
+   else if ((minw >= w) && (minh >= h))
      evas_object_resize(obj, minw, minh);
 }