diff options
author | woochan lee <wc0917.lee@samsung.com> | 2015-10-26 01:20:53 +0100 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-10-26 01:20:56 +0100 |
commit | aa7a0142ba6e7c48916505f85610b50529ceaa90 (patch) | |
tree | 4422da4acc7c2e508203b481b1537e5eae382ba2 | |
parent | 371eb00ecb2243451e2e6544f0faf10d017c1073 (diff) | |
download | elementary-aa7a0142ba6e7c48916505f85610b50529ceaa90.tar.gz |
multibuttonentry: fix label packed many times in internal box.
Summary:
The Internal box can has a lot of label for child when user set text many times.
Fix this wrong implement. It has to get only one label for child.
@fix
Test Plan:
Call elm_object_text_set() many times for MBE.
Check the label got a wrong geometry.
Reviewers: Hermet, cedric
Differential Revision: https://phab.enlightenment.org/D3133
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r-- | src/lib/elc_multibuttonentry.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elc_multibuttonentry.c b/src/lib/elc_multibuttonentry.c index e213234e9..4df92c94e 100644 --- a/src/lib/elc_multibuttonentry.c +++ b/src/lib/elc_multibuttonentry.c @@ -1193,6 +1193,8 @@ _label_set(Evas_Object *obj, } else { + if (sd->label_packed) + elm_box_unpack(sd->box, sd->label); sd->label_packed = EINA_TRUE; edje_object_size_min_calc(sd->label, &width, &height); evas_object_size_hint_min_set(sd->label, width, height); |