multibuttonentry: fix label packed many times in internal box.
authorwoochan lee <wc0917.lee@samsung.com>
Mon, 26 Oct 2015 00:20:53 +0000 (01:20 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Mon, 26 Oct 2015 00:20:56 +0000 (01:20 +0100)
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>
src/lib/elc_multibuttonentry.c

index e213234e9be2bfc9a4d693684635a82c5f8cd3e7..4df92c94ea0d77c4aa620c281ce7f6aba2240d63 100644 (file)
@@ -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);