summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwoochan lee <wc0917.lee@samsung.com>2015-07-01 10:54:46 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-07-01 10:57:08 +0900
commit79f0e6a0e6eac69159317cca8d65b1a8349b6281 (patch)
tree952b15112c59fb763c739eecd41466ae7fa588dc
parent19e7b5e424728817c5c3e1b125c1e686323df8e6 (diff)
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.c26
1 files changed, 11 insertions, 15 deletions
diff --git a/src/lib/elc_multibuttonentry.c b/src/lib/elc_multibuttonentry.c
index 33fdb9fa9..c639516bd 100644
--- a/src/lib/elc_multibuttonentry.c
+++ b/src/lib/elc_multibuttonentry.c
@@ -924,26 +924,22 @@ _box_resize_cb(void *data,
924 else if (sd->h_box > h) 924 else if (sd->h_box > h)
925 evas_object_smart_callback_call(sd->parent, SIG_CONTRACTED, NULL); 925 evas_object_smart_callback_call(sd->parent, SIG_CONTRACTED, NULL);
926 926
927 if (sd->w_box && sd->w_box != w) 927 if (sd->items && sd->w_box != w)
928 { 928 {
929 if (sd->items) 929 EINA_LIST_FOREACH (sd->items, l, eo_it)
930 { 930 {
931 ELM_MULTIBUTTONENTRY_ITEM_DATA_GET(eo_it, it);
931 932
932 EINA_LIST_FOREACH (sd->items, l, eo_it) 933 elm_layout_sizing_eval(VIEW(it));
933 { 934 evas_object_smart_calculate(VIEW(it));
934 ELM_MULTIBUTTONENTRY_ITEM_DATA_GET(eo_it, it);
935
936 elm_layout_sizing_eval(VIEW(it));
937 evas_object_smart_calculate(VIEW(it));
938 935
939 evas_object_size_hint_min_get(VIEW(it), &mnw, &mnh); 936 evas_object_size_hint_min_get(VIEW(it), &mnw, &mnh);
940 937
941 if (mnw > w) 938 if (mnw > w)
942 { 939 {
943 mnw = w; 940 mnw = w;
944 evas_object_size_hint_min_set(VIEW(it), mnw, mnh); 941 evas_object_size_hint_min_set(VIEW(it), mnw, mnh);
945 evas_object_resize(VIEW(it), mnw, mnh); 942 evas_object_resize(VIEW(it), mnw, mnh);
946 }
947 } 943 }
948 } 944 }
949 } 945 }