Revert "elm_panel: add exception handling in _drawer_close()"
authorJaeun Choi <jaeun12.choi@samsung.com>
Tue, 16 Jan 2018 05:48:11 +0000 (14:48 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Wed, 17 Jan 2018 09:19:32 +0000 (18:19 +0900)
This reverts commit 2acfc3e381dc4fc87e3249b0f63f1ba5e0d1c2de.

src/lib/elementary/elm_panel.c

index 79f577a..767c281 100644 (file)
@@ -363,7 +363,7 @@ static void
 _drawer_close(Evas_Object *obj, Evas_Coord w, Evas_Coord h, Eina_Bool anim)
 {
    ELM_PANEL_DATA_GET(obj, sd);
-   int x = 0, y = 0, cx, cy;
+   int x = 0, y = 0;
    Eina_Bool horizontal = EINA_FALSE;
 
    elm_widget_tree_unfocusable_set(obj, EINA_TRUE);
@@ -389,25 +389,6 @@ _drawer_close(Evas_Object *obj, Evas_Coord w, Evas_Coord h, Eina_Bool anim)
          break;
      }
 
-   elm_interface_scrollable_content_pos_get(obj, &cx, &cy);
-
-   if ((x == cx) && (y == cy))
-     {
-        if (!sd->freeze)
-          {
-             if (horizontal)
-               elm_interface_scrollable_movement_block_set
-                  (EFL_UI_SCROLL_BLOCK_HORIZONTAL);
-             else
-               elm_interface_scrollable_movement_block_set
-                  (EFL_UI_SCROLL_BLOCK_VERTICAL);
-             sd->freeze = EINA_TRUE;
-             elm_layout_signal_emit(sd->scr_ly, "elm,state,content,hidden", "elm");
-          }
-
-        return;
-     }
-
    if (anim)
      {
         if (sd->freeze)