forked from enlightenment/efl
evas_textblock: reduce content fit calculations
Reviewers: woohyun, id213sin Reviewed By: woohyun, id213sin Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12187
This commit is contained in:
parent
ac2987b363
commit
f56004db6e
|
@ -17728,6 +17728,10 @@ int fit_text_block(Evas_Object *eo_obj)
|
||||||
|
|
||||||
TEXT_FIT_CONTENT_CONFIG * fc = &o->fit_content_config;
|
TEXT_FIT_CONTENT_CONFIG * fc = &o->fit_content_config;
|
||||||
|
|
||||||
|
// If there are no text or Paragraphs, then do nothing
|
||||||
|
if (efl_canvas_textblock_is_empty_get(eo_obj))
|
||||||
|
return EVAS_ERROR_SUCCESS;
|
||||||
|
|
||||||
if (fc->options == TEXTBLOCK_FIT_MODE_NONE && !fc->force_refit)
|
if (fc->options == TEXTBLOCK_FIT_MODE_NONE && !fc->force_refit)
|
||||||
return EVAS_ERROR_SUCCESS;
|
return EVAS_ERROR_SUCCESS;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue