edje: fix clipper loop issue caused by clipper object for fade ellipsis 04/127204/4
authorYoungbok Shin <youngb.shin@samsung.com>
Thu, 27 Apr 2017 08:00:51 +0000 (17:00 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Fri, 28 Apr 2017 06:48:37 +0000 (06:48 +0000)
@tizen_fix
Change-Id: Idc984a01b763e3f63b64b88a7261d20b488f01aa

src/lib/edje/edje_calc.c

index 7c36ec1..ab253b9 100644 (file)
@@ -5918,6 +5918,19 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta
              if (ep->part->type == EDJE_PART_TYPE_TEXTBLOCK ||
                  ep->part->type == EDJE_PART_TYPE_TEXT)
                {
+                  /* TIZEN_ONLY(20170427): fix clipper loop issue caused by clipper object for fade ellipsis.
+                   * Reset clipper for Textblock to fix the issue. */
+                  if (ep->part->type == EDJE_PART_TYPE_TEXTBLOCK)
+                    {
+                       if (pf->clip_to && pf->clip_to->object)
+                         evas_object_clip_set(ep->object, pf->clip_to->object);
+                       else if (ep->part->clip_to_id >= 0)
+                         evas_object_clip_set(ep->object, ed->table_parts[ep->part->clip_to_id % ed->table_parts_size]->object);
+                       else
+                         evas_object_clip_set(ep->object, ed->base->clipper);
+                    }
+                  /* END */
+
                   _edje_fade_ellipsis_apply(ed, ep, pf, (Edje_Part_Description_Text*) chosen_desc);
                   //TIZEN_ONLY(20160923): introduction of text marquee
                   _edje_text_marquee_apply(ed, ep, pf, (Edje_Part_Description_Text *) chosen_desc);