mobile_lib/ctxpopup: fix float calculate problem 98/139798/2
authorJinYong Park <j4939.park@samsung.com>
Thu, 20 Jul 2017 11:02:51 +0000 (20:02 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Mon, 24 Jul 2017 04:47:22 +0000 (04:47 +0000)
Change-Id: I37874f6bbc84db5dac172e44bef9f9b5a233ce7a
Signed-off-by: Jinyong Park <j4939.park@samsung.com>
src/mobile_lib/elc_ctxpopup.c

index 3edd8dbc201de3b7fc004f7225dc6e8b26706942..dba3bec90013138b6929badb6a7ec900fd3a06dc 100644 (file)
@@ -560,13 +560,13 @@ _base_geometry_calc(Evas_Object *obj,
           max_size.x = (int)(atoi(str)
                              * elm_config_scale_get()
                              * elm_object_scale_get(obj)
-                             / edje_object_base_scale_get(sd->layout));
+                             / edje_object_base_scale_get(sd->layout) + 0.5);
         str = edje_object_data_get(sd->layout, "visible_maxh");
         if (str)
           max_size.y = (int)(atoi(str)
                              * elm_config_scale_get()
                              * elm_object_scale_get(obj)
-                             / edje_object_base_scale_get(sd->layout));
+                             / edje_object_base_scale_get(sd->layout) + 0.5);
      }
 
    if ((max_size.y > 0) && (base_size.y > max_size.y))