ctxpopup: fix size calc problem when base part size same with list 99/124999/2
authorJinYong Park <j4939.park@samsung.com>
Thu, 13 Apr 2017 09:14:37 +0000 (18:14 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Tue, 18 Apr 2017 09:38:43 +0000 (02:38 -0700)
Change-Id: I3f0bff89ebb5b464fba218bd7c3b267b7bcec181
Signed-off-by: Jinyong Park <j4939.park@samsung.com>
src/lib/elc_ctxpopup.c

index 6e877ec..8475edc 100644 (file)
@@ -682,7 +682,12 @@ _elm_ctxpopup_elm_layout_sizing_eval(Eo *obj, Elm_Ctxpopup_Data *sd)
    if ((sd->list) && (sd->list_visible))
      {
         evas_object_geometry_get(sd->list, 0, 0, &list_size.x, &list_size.y);
+        /* TIZEN_ONLY(20170413): fix sizing eval problem
+           When list size is same with ctxpopup base part,
+           list doesn't need to change to compress mode
         if ((list_size.x >= rect.w) || (list_size.y >= rect.h))
+        */
+        if ((list_size.x > rect.w) || (list_size.y > rect.h))
           {
              elm_list_mode_set(sd->list, ELM_LIST_COMPRESS);
              evas_object_size_hint_min_set(obj, list_size.x, list_size.y);