label: set sliding only if label size is valid
authorMinkyu Kang <mk7.kang@samsung.com>
Mon, 27 Jun 2016 18:12:16 +0000 (11:12 -0700)
committerCedric Bail <cedric@osg.samsung.com>
Mon, 27 Jun 2016 18:12:19 +0000 (11:12 -0700)
commita12e69c15367814b815e7e4db8fd0ad0f00cf96c
treecd563f8a073a876cf0ede89656ebaaa858684fc2
parent5ce3c4a049b14098c4e85e00c2367b7709693a5d
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>
src/lib/elementary/elm_label.c