From: Bowon Ryu Date: Tue, 15 Dec 2020 05:09:27 +0000 (+0900) Subject: elm_toolbar: fix box size issue X-Git-Tag: submit/tizen/20201220.213638~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=58b80a7c135bc8c7c716e9817d937cfce4cec9d3;p=platform%2Fupstream%2Fefl.git elm_toolbar: fix box size issue 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 --- diff --git a/src/lib/elementary/elm_toolbar.c b/src/lib/elementary/elm_toolbar.c index e540466..87721c4 100644 --- a/src/lib/elementary/elm_toolbar.c +++ b/src/lib/elementary/elm_toolbar.c @@ -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;