elm_panel: add exception handling in _drawer_close() 85/167185/3
authorJaeun Choi <jaeun12.choi@samsung.com>
Tue, 16 Jan 2018 05:45:36 +0000 (14:45 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Thu, 18 Jan 2018 05:39:27 +0000 (05:39 +0000)
commit70ae00f8821c7ea007aeabb04b1beb3bf95cd65c
treeaca93f1de253cac4a1186b2649ff7a572e7565f7
parent89f98c2541a340544cf66f1a14ece99ca936b1d5
elm_panel: add exception handling in _drawer_close()

this fixes a bug with scrollable panel not being blocked
when it is closed. scroll is blocked in _anim_stop_cb(),
which is called after elm_interface_scrollable_region_bring_in().
but if panel content is already at the target position, _anim_stop_cb()
is not called. so there is a need to check content's position and
handle the exceptional case.

Change-Id: I9b993dd4d5f776511b5f0b1006cfc6302cadaf76
origin: upstream (d36c849e2003aaa54432b74bcabe9f838d992a36)
src/lib/elm_panel.c