summaryrefslogtreecommitdiff
path: root/src/lib/edje/edje_calc.c
diff options
context:
space:
mode:
authorSubodhKumar <s7158.kumar@samsung.com>2018-09-17 00:28:22 +0300
committerDaniel Hirt <hirt.danny@gmail.com>2018-09-17 17:38:24 +0300
commitf107ea24325c66ce5a2fcb7beb3947ebe77c66ef (patch)
treeefac5a4b68090007fa19df413096f03bcb05a644 /src/lib/edje/edje_calc.c
parent70d0fd0d52f4deac18132cc80672aab6d31bb06f (diff)
edje: Remove hack code
Summary: special calculation for textblock is for fit calculation. This is obvious from code that fit is being calculated before text is actually been set to textblock. I am not sure whether this is intentional or mistake but it make sense to calculate fit after text is being set so that formatted and native calculation can be proper. @fix Test Plan: NA Reviewers: cedric, zmike, herdsman, devilhorns Subscribers: stefan_schmidt, #reviewers, #committers, shilpasingh Tags: #efl Differential Revision: https://phab.enlightenment.org/D6045
Diffstat (limited to '')
-rw-r--r--src/lib/edje/edje_calc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c
index 86c7aafd19..610f55773c 100644
--- a/src/lib/edje/edje_calc.c
+++ b/src/lib/edje/edje_calc.c
@@ -4972,14 +4972,11 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta
4972 _edje_table_recalc_apply(ed, ep, pf, (Edje_Part_Description_Table *)chosen_desc); 4972 _edje_table_recalc_apply(ed, ep, pf, (Edje_Part_Description_Table *)chosen_desc);
4973 break; 4973 break;
4974 4974
4975 case EDJE_PART_TYPE_TEXTBLOCK:
4976 _edje_textblock_recalc_apply(ed, ep, pf, (Edje_Part_Description_Text *)chosen_desc);
4977 break;
4978
4979 case EDJE_PART_TYPE_VECTOR: 4975 case EDJE_PART_TYPE_VECTOR:
4980 _edje_svg_recalc_apply(ed, ep, pf, (Edje_Part_Description_Vector *)chosen_desc, pos); 4976 _edje_svg_recalc_apply(ed, ep, pf, (Edje_Part_Description_Vector *)chosen_desc, pos);
4981 break; 4977 break;
4982 4978
4979 case EDJE_PART_TYPE_TEXTBLOCK:
4983 case EDJE_PART_TYPE_EXTERNAL: 4980 case EDJE_PART_TYPE_EXTERNAL:
4984 case EDJE_PART_TYPE_RECTANGLE: 4981 case EDJE_PART_TYPE_RECTANGLE:
4985 case EDJE_PART_TYPE_SWALLOW: 4982 case EDJE_PART_TYPE_SWALLOW: