label: fix label sizing issue. 05/166505/2
authorBowon Ryu <bowon.ryu@samsung.com>
Wed, 10 Jan 2018 11:19:42 +0000 (20:19 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Wed, 10 Jan 2018 11:30:19 +0000 (11:30 +0000)
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/elementary/elm_label.c

index 9fb0604..4bc47cc 100644 (file)
@@ -312,7 +312,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);
      }