temp_h = *maxh;
}
- if (temp_w > 0) temp_w--;
-
/* If base width for calculation is 0,
* don't get meaningless height for multiline */
if (temp_w > 0)
temp_h = *maxh;
}
- if (temp_w > 0) temp_w--;
eo_do(ep->object,
efl_gfx_size_set(temp_w, temp_h),
evas_obj_textblock_size_formatted_get(&tw, &th));
}
}
- if ((tw + 1) > min_calc_w) min_calc_w = tw + 1;
+ if (tw > min_calc_w) min_calc_w = tw;
if (th > min_calc_h) min_calc_h = th;
if (chosen_desc->text.min_x && minw) *minw = min_calc_w;
if (chosen_desc->text.min_y && minh) *minh = min_calc_h;
* text.max: 0 1
* Already calculated in text for height. */
tw = TO_INT(params->eval.w);
- if ((min_calc_w - 1) > tw)
- tw = min_calc_w - 1;
+ if (min_calc_w > tw)
+ tw = min_calc_w;
th = min_calc_h;
}
if (min_calc_h > temp_h)
temp_h = min_calc_h;
- if (temp_w > 0) temp_w--;
-
/* If base width for calculation is 0,
* don't get meaningless height for multiline */
if (temp_w > 0)
/* text.min: 0 1
* text.max: 1 1
* There is no need to calculate it again. */
- tw = min_calc_w - 1;
+ tw = min_calc_w;
th = min_calc_h;
}
else
/* text.min: 0 0
* text.max: 1 1 */
- if (temp_w > 0) temp_w--;
eo_do(ep->object,
efl_gfx_size_set(temp_w, temp_h),
evas_obj_textblock_size_formatted_get(&tw, &th));
if (min_calc_w > temp_w)
temp_w = min_calc_w;
- if (temp_w > 0) temp_w--;
eo_do(ep->object,
efl_gfx_size_get(NULL, &temp_h),
efl_gfx_size_set(temp_w, temp_h),
}
if (maxw && chosen_desc->text.max_x)
{
- if ((tw + 1) > *maxw) *maxw = tw + 1;
+ if (tw > *maxw) *maxw = tw;
if (minw && (*maxw < *minw)) *maxw = *minw;
}
if (maxh && chosen_desc->text.max_y)
{
- if (th > *maxh) *maxh = th + 1;
+ if (th > *maxh) *maxh = th;
if (minh && (*maxh < *minh)) *maxh = *minh;
}
}