hermet pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=688813f2cf47cef38d5cb645bde1f77674b5505d
commit 688813f2cf47cef38d5cb645bde1f77674b5505d Author: woochan lee <wc0917....@samsung.com> Date: Wed Jul 1 10:54:46 2015 +0900 multibuttonentry: Delete item size min set when first box resize time. Summary: The mbe items has to get own min size to calc each items locate, box size etc... but when first time box resize it will ignored. It makes item wrong size issue when mbe located at some part of layout in runtime. Reviewers: Hermet, seoz, woohyun Differential Revision: https://phab.enlightenment.org/D2657 --- src/lib/elc_multibuttonentry.c | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/lib/elc_multibuttonentry.c b/src/lib/elc_multibuttonentry.c index 4bf2e5b..24cc158 100644 --- a/src/lib/elc_multibuttonentry.c +++ b/src/lib/elc_multibuttonentry.c @@ -926,26 +926,22 @@ _box_resize_cb(void *data, else if (sd->h_box > h) evas_object_smart_callback_call(sd->parent, SIG_CONTRACTED, NULL); - if (sd->w_box && sd->w_box != w) + if (sd->items && sd->w_box != w) { - if (sd->items) + EINA_LIST_FOREACH (sd->items, l, eo_it) { + ELM_MULTIBUTTONENTRY_ITEM_DATA_GET(eo_it, it); - EINA_LIST_FOREACH (sd->items, l, eo_it) - { - ELM_MULTIBUTTONENTRY_ITEM_DATA_GET(eo_it, it); - - elm_layout_sizing_eval(VIEW(it)); - evas_object_smart_calculate(VIEW(it)); + elm_layout_sizing_eval(VIEW(it)); + evas_object_smart_calculate(VIEW(it)); - evas_object_size_hint_min_get(VIEW(it), &mnw, &mnh); + evas_object_size_hint_min_get(VIEW(it), &mnw, &mnh); - if (mnw > w) - { - mnw = w; - evas_object_size_hint_min_set(VIEW(it), mnw, mnh); - evas_object_resize(VIEW(it), mnw, mnh); - } + if (mnw > w) + { + mnw = w; + evas_object_size_hint_min_set(VIEW(it), mnw, mnh); + evas_object_resize(VIEW(it), mnw, mnh); } } } --