From a4e54adb0c329c149ac03233aaf4c3d4c69b8b01 Mon Sep 17 00:00:00 2001 From: Bowon Ryu Date: Fri, 26 May 2017 13:01:56 +0900 Subject: [PATCH] elm_toolbar: added to ensure different sizes of items in shrink mode. Change-Id: I9f8a14e77a8859c9a7543e442f8355d5ef5c0d3d Signed-off-by: Bowon Ryu --- src/lib/elementary/elm_toolbar.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/elementary/elm_toolbar.c b/src/lib/elementary/elm_toolbar.c index 95b57e0..8db974b 100644 --- a/src/lib/elementary/elm_toolbar.c +++ b/src/lib/elementary/elm_toolbar.c @@ -3514,6 +3514,12 @@ _elm_toolbar_shrink_mode_set(Eo *obj, Elm_Toolbar_Data *sd, Elm_Toolbar_Shrink_M sd->more_item = _item_new(obj, "go-down", "More", NULL, NULL); _resizing_eval_item(sd->more_item); } + else if (shrink_mode == ELM_TOOLBAR_SHRINK_SCROLL) + { + elm_toolbar_homogeneous_set(obj, EINA_FALSE); + elm_interface_scrollable_policy_set + (obj, ELM_SCROLLER_POLICY_AUTO, ELM_SCROLLER_POLICY_OFF); + } else elm_interface_scrollable_policy_set (obj, ELM_SCROLLER_POLICY_AUTO, ELM_SCROLLER_POLICY_OFF); -- 2.7.4