From 46f289a0775c1164fbf4311b5c8f079d1070c17c Mon Sep 17 00:00:00 2001 From: Bowon Ryu Date: Wed, 10 Jan 2018 20:19:42 +0900 Subject: [PATCH] label: fix label sizing issue. If a width is 0, Do not calc for the Multi-line. @tizen_fix Change-Id: Ib80176e245ad69b619629e2af61e4ac0ad56712c Signed-off-by: Bowon Ryu --- src/lib/elementary/elm_label.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/elementary/elm_label.c b/src/lib/elementary/elm_label.c index 9fb0604..4bc47cc 100644 --- a/src/lib/elementary/elm_label.c +++ b/src/lib/elementary/elm_label.c @@ -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); } -- 2.7.4