label: fix label sizing issue.
authorBowon Ryu <bowon.ryu@samsung.com>
Thu, 3 Nov 2016 11:08:57 +0000 (20:08 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Tue, 8 Nov 2016 01:46:30 +0000 (10:46 +0900)
If a width is 0, Do not calc for the Multi-line.

@tizen_fix

Change-Id: Ib80176e245ad69b619629e2af61e4ac0ad56712c
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
src/lib/elm_label.c

index fff562a..97b346d 100644 (file)
@@ -212,7 +212,10 @@ _elm_label_elm_layout_sizing_eval(Eo *obj, Elm_Label_Data *_pd EINA_UNUSED)
    if (sd->linewrap)
     {
         evas_object_geometry_get(wd->resize_obj, NULL, NULL, &resw, &resh);
-        if (resw == sd->lastw) return;
+        // TIZEN_ONLY(20161103): If a width is 0, Do not calc for the Multi-line
+        //if (resw == sd->lastw) return;
+        if ((resw == sd->lastw) || ((resw == 0) && (sd->wrap_w <= 0))) return;
+        //
         sd->lastw = resw;
         _recalc(obj);
      }