From: JinYong Park Date: Wed, 7 Dec 2016 07:37:06 +0000 (+0900) Subject: Revert "ctxpopup: disable auto hide when orient is changed." X-Git-Tag: accepted/tizen/common/20170102.152333~82 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2cdb9bb4bf86ae797c9deb4316831ad8a0223b6e;p=platform%2Fupstream%2Felementary.git Revert "ctxpopup: disable auto hide when orient is changed." This reverts commit bf1f360915789c608007c5d384ee8bc791836b83. Change-Id: I3f79e673371663ecaf5b5265def123690d08dac0 --- diff --git a/src/mobile_lib/elc_ctxpopup.c b/src/mobile_lib/elc_ctxpopup.c index 07f1a62..5930160 100644 --- a/src/mobile_lib/elc_ctxpopup.c +++ b/src/mobile_lib/elc_ctxpopup.c @@ -1079,11 +1079,7 @@ _on_parent_resize(void *data, ELM_CTXPOPUP_DATA_GET(data, sd); ELM_WIDGET_DATA_GET_OR_RETURN(data, wd); - /* TIZEN_ONLY(2161128): Remove auto hide when display rotate if (sd->auto_hide) - */ - if (sd->auto_hide && sd->prev_orient == wd->orient_mode) - /* END */ { _hide_signals_emit(data, sd->dir); @@ -1094,10 +1090,6 @@ _on_parent_resize(void *data, } else { - /* TIZEN_ONLY(2161128): Remove auto hide when display rotate */ - sd->prev_orient = wd->orient_mode; - /* END */ - if (wd->orient_mode == 90 || wd->orient_mode == 270) elm_widget_theme_object_set (data, sd->layout, "ctxpopup", "layout/landscape", elm_widget_style_get(data)); @@ -1882,10 +1874,6 @@ _elm_ctxpopup_evas_object_smart_add(Eo *obj, Elm_Ctxpopup_Data *priv) //Tizen Only: This should be removed when eo is applied. wd->on_create = EINA_FALSE; - - /* TIZEN_ONLY(2161128): Remove auto hide when display rotate */ - priv->prev_orient = wd->orient_mode; - /* END */ } EOLIAN static void diff --git a/src/mobile_lib/elm_widget_ctxpopup.h b/src/mobile_lib/elm_widget_ctxpopup.h index 38a188c..480fce4 100644 --- a/src/mobile_lib/elm_widget_ctxpopup.h +++ b/src/mobile_lib/elm_widget_ctxpopup.h @@ -69,10 +69,6 @@ struct _Elm_Ctxpopup_Data //******************** TIZEN Only Eina_Bool pressed : 1; //**************************** - - /* TIZEN_ONLY(2161128): Remove auto hide when display rotate */ - int prev_orient; - /* END */ }; /**