hermet pushed a commit to branch elementary-1.14. http://git.enlightenment.org/core/elementary.git/commit/?id=79f0e6a0e6eac69159317cca8d65b1a8349b6281
commit 79f0e6a0e6eac69159317cca8d65b1a8349b6281 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 33fdb9f..c639516 100644 --- a/src/lib/elc_multibuttonentry.c +++ b/src/lib/elc_multibuttonentry.c @@ -924,26 +924,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); } } } --