elm_toolbar: fix box size issue 67/249567/1
authorBowon Ryu <bowon.ryu@samsung.com>
Tue, 15 Dec 2020 05:09:27 +0000 (14:09 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Tue, 15 Dec 2020 05:19:49 +0000 (14:19 +0900)
When an item in a box is deleted, the box size changed callback is not called.
because the actual evas_box size does not change in the sizing_eval of the box.
So this patch tries to resize the box using EVAS_CALLBACK_CHANGED_SIZE_HINTS callback.

@tizen_fix

Change-Id: I9c803a1b9471cd645fe25652bdeab22d270557ae
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
src/lib/elementary/elm_toolbar.c

index e540466..87721c4 100644 (file)
@@ -3071,6 +3071,10 @@ _elm_toolbar_efl_canvas_group_group_add(Eo *obj, Elm_Toolbar_Data *priv)
    evas_object_event_callback_add(obj, EVAS_CALLBACK_MOVE, _move_cb, obj);
    evas_object_event_callback_add
      (priv->bx, EVAS_CALLBACK_RESIZE, _resize_cb, obj);
+   /* TIZEN_ONLY(20201215): fix box size issue */
+   evas_object_event_callback_add
+     (priv->bx, EVAS_CALLBACK_CHANGED_SIZE_HINTS, _resize_cb, obj);
+   /* END */
 
    /* TIZEN_ONLY(20180412): lookup_order implements */
    priv->has_lookup_order = EINA_FALSE;