diff options
author | woochan lee <wc0917.lee@samsung.com> | 2015-07-01 10:54:46 +0900 |
---|---|---|
committer | ChunEon Park <hermet@hermet.pe.kr> | 2015-07-01 10:54:47 +0900 |
commit | 688813f2cf47cef38d5cb645bde1f77674b5505d (patch) | |
tree | bba13edd9593f2be2a3ffd1c64bcf189a132ffd5 | |
parent | a509df59360763f6aabae0f09af2bfe37b0970ba (diff) | |
download | elementary-688813f2cf47cef38d5cb645bde1f77674b5505d.tar.gz |
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
-rw-r--r-- | src/lib/elc_multibuttonentry.c | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/src/lib/elc_multibuttonentry.c b/src/lib/elc_multibuttonentry.c index 4bf2e5b36..24cc158af 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); } } } |