edje_calc: Fix invalid parameters during first calc
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 15 May 2014 03:26:44 +0000 (12:26 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 15 May 2014 07:07:00 +0000 (16:07 +0900)
commit7bbdb68811b2f760b9daab7576057c116277ff51
tree9a138ed37cda18f3c1b60f22f9136d5de190fbbd
parent7c00bd51236d6414675ae759fcf38d914df3268b
edje_calc: Fix invalid parameters during first calc

In particular, ellipsis is -1 by default in Evas, but at this
point (first layout calc), the parameters used for recalc are
incomplete and ellipsis would then be 0 by default (calloc).

As a consequence, Edje will call ellipsis_set(0) enabling
ellipsis even on objects that force "ellipsis: -1".

Solution: set all the parameters before entering text/tb calc.

I believe the other changes are only color and image padding
and should not affect recalc_single.
src/lib/edje/edje_calc.c