From: Wonki Kim Date: Wed, 15 Jul 2020 08:32:51 +0000 (+0900) Subject: eext_scroller: modify to have a proper size in larger display X-Git-Tag: submit/tizen/20200719.223823~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e95e1824b5d2b665143877dca0d1937fdb55ae64;p=platform%2Fcore%2Fuifw%2Fefl-ext.git eext_scroller: modify to have a proper size in larger display you can set radius of a circle object item in range between 0 to 180 px(fixed) this patch makes it wider by using scale facotrs. and this patch also contains changes for a radius value of scroller bar. Change-Id: I331ab800722299eafd548ab987952eadec6a6d35 --- diff --git a/src/wearable/circle/efl_extension_circle_object_item.c b/src/wearable/circle/efl_extension_circle_object_item.c index 4b067be..37add62 100644 --- a/src/wearable/circle/efl_extension_circle_object_item.c +++ b/src/wearable/circle/efl_extension_circle_object_item.c @@ -832,7 +832,7 @@ _eext_circle_object_item_radius_set(Eext_Circle_Object_Item *item, double radius if (!item) return; if (radius < 0.0) radius = 0.0; - if (radius > 180.0) radius = 180.0; + if (radius > ELM_SCALE_SIZE(180.0)) radius = ELM_SCALE_SIZE(180.0); if (item->radius == radius) return; diff --git a/src/wearable/circle/efl_extension_circle_object_scroller.c b/src/wearable/circle/efl_extension_circle_object_scroller.c index cba69bb..c8ced7b 100644 --- a/src/wearable/circle/efl_extension_circle_object_scroller.c +++ b/src/wearable/circle/efl_extension_circle_object_scroller.c @@ -1498,7 +1498,7 @@ _eext_circle_object_scroller_init(Eext_Circle_Object *obj, Evas_Object *scroller data->policy_v = ELM_SCROLLER_POLICY_AUTO; data->policy_h = ELM_SCROLLER_POLICY_AUTO; data->line_width = SCROLL_BAR_WIDTH_SIZE; - data->radius = SCROLL_BAR_RADIUS_SIZE; + data->radius = ELM_SCALE_SIZE(SCROLL_BAR_RADIUS_SIZE); data->step_x = data->step_y = 32; data->bezel_scrollbar_color_class = STR_DUP(edje_object_data_get(elm_layout_edje_get(obj->widget_object), "bezel_bar_color_class"));