From b0d9d1e6278be8b46c37d9c9f88e70f73c27a2dc Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E2=80=9Cvijay=2Etiwari=E2=80=9D?= Date: Mon, 19 Sep 2016 17:07:12 +0530 Subject: [PATCH] [W-Taskmanager] Box resize issue after deleting item fixed Change-Id: I7af80d050564424ea8718e9720281597b62c7fe9 --- src/scroller.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/scroller.c b/src/scroller.c index 6562f42..3f933c4 100644 --- a/src/scroller.c +++ b/src/scroller.c @@ -457,7 +457,7 @@ task_mgr_error_e scroller_push_all_item(void *data) item = item_create(main_info, info); continue_if(!item); evas_object_resize(item, main_info->root_w, main_info->root_h); - elm_box_pack_start(main_info->box, item); + elm_box_pack_end(main_info->box, item); } if (eina_list_count(main_info->pkg_list) == 0) { /* set no count */ @@ -522,10 +522,12 @@ static void _box_layout_cb(Evas_Object *o, Evas_Object_Box_Data *priv, void *dat evas_object_geometry_get(o, &x, &y, &w, &h); _D("X: %d, Y: %d, W: %d, H: %d", x, y, w, h); - if (main_info->icon_move == EINA_TRUE) + /*if (main_info->icon_move == EINA_TRUE) { + _D("main_info->icon_move is true"); return; - + }*/ n_children = eina_list_count(priv->children); + _D("n_children : %d", n_children); if (n_children == 0) return; @@ -575,7 +577,7 @@ Evas_Object *scroller_create(void *data) elm_scroller_bounce_set(scroller, EINA_TRUE, EINA_TRUE); elm_scroller_policy_set(scroller, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF); elm_object_scroll_lock_y_set(scroller, EINA_TRUE); -// elm_scroller_page_relative_set(scroller, 1.0, 0.0); + elm_scroller_page_relative_set(scroller, 0.0, 0.0); elm_scroller_page_scroll_limit_set(scroller, 1, 0); //evas_object_smart_callback_add(scroller, "scroll", _scroller_scroll_cb, main_info); evas_object_smart_callback_add(scroller, "scroll,drag,start", _br_scroller_drag_start_cb, main_info); -- 2.7.4