forked from enlightenment/efl
elm_panel: set scrollable panel unfocusable when closed.
Summary: - When scrollable panel is closed by elm_panel_hidden_set(), elm_panel_toggle() APIs, it shows animation with scroller bringin effect. - During this animation, panel is still focusable, and may stop closing when content gets focused. - scrollable panel is now set unfocusable when closed by APIs above, and set focusable when opened after bringin animation. Test Plan: 1) Set panel scrollable and opened. 2) Set another object focused and deleted it when panel is closing. 3) Observe panel is closed. Reviewers: cedric, jpeg, woohyun Subscribers: conr2d, cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4641 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
8ac66d9dc0
commit
f4d5d57e17
|
@ -409,6 +409,7 @@ _drawer_close(Evas_Object *obj, Evas_Coord w, Evas_Coord h, Eina_Bool anim)
|
||||||
int x = 0, y = 0;
|
int x = 0, y = 0;
|
||||||
Eina_Bool horizontal = EINA_FALSE;
|
Eina_Bool horizontal = EINA_FALSE;
|
||||||
|
|
||||||
|
elm_widget_tree_unfocusable_set(obj, EINA_TRUE);
|
||||||
switch (sd->orient)
|
switch (sd->orient)
|
||||||
{
|
{
|
||||||
case ELM_PANEL_ORIENT_TOP:
|
case ELM_PANEL_ORIENT_TOP:
|
||||||
|
|
Loading…
Reference in New Issue