forked from enlightenment/efl
label: set sliding only if label size is valid
Summary: When call slide_go before label is resized, setting the sliding is a meaningless. This patch is for reducing redundant operations. Signed-off-by: Minkyu Kang <mk7.kang@samsung.com> Signed-off-by: Deepjyoti Dutta <deepjyoti.d@samsung.com> Test Plan: elementary_test -to "label slide" Reviewers: cedric, Hermet Subscribers: seoz, jpeg Differential Revision: https://phab.enlightenment.org/D4089 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
This commit is contained in:
parent
5ce3c4a049
commit
a12e69c153
|
@ -116,6 +116,7 @@ _label_slide_change(Evas_Object *obj)
|
|||
tb = edje_object_part_object_get(wd->resize_obj, "elm.text");
|
||||
evas_object_textblock_size_native_get(tb, &tb_w, NULL);
|
||||
evas_object_geometry_get(wd->resize_obj, NULL, NULL, &w, NULL);
|
||||
if (w <= 0) return;
|
||||
|
||||
if (sd->ellipsis)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue