elm_panel: show and hide necessary object when scrollable is set 22/159422/1
authorJeonghyun Yun <jh0506.yun@samsung.com>
Thu, 9 Nov 2017 01:19:17 +0000 (10:19 +0900)
committerJeonghyun Yun <jh0506.yun@samsung.com>
Thu, 9 Nov 2017 01:32:43 +0000 (01:32 +0000)
@tizen_fix

Change-Id: I229f9872551a5ba656c9fd91a1f62b34db282824
Signed-off-by: Jeonghyun Yun <jh0506.yun@samsung.com>
src/lib/elm_panel.c

index bda52ea..0173764 100644 (file)
@@ -1700,6 +1700,9 @@ _elm_panel_scrollable_set(Eo *obj, Elm_Panel_Data *sd, Eina_Bool scrollable)
 
         elm_widget_resize_object_set(obj, NULL, EINA_TRUE);
         elm_widget_sub_object_add(obj, sd->panel_edje);
+        // TIZEN_ONLY(20171109): show and hide necessary object when scrollable is set
+        evas_object_hide(sd->panel_edje);
+        //
 
         if (!sd->scr_edje)
           {
@@ -1719,6 +1722,9 @@ _elm_panel_scrollable_set(Eo *obj, Elm_Panel_Data *sd, Eina_Bool scrollable)
           }
 
         elm_widget_resize_object_set(obj, sd->scr_edje, EINA_TRUE);
+        // TIZEN_ONLY(20171109): show and hide necessary object when scrollable is set
+        evas_object_show(sd->scr_edje);
+        //
 
         if (!sd->hit_rect)
           {
@@ -1755,6 +1761,9 @@ _elm_panel_scrollable_set(Eo *obj, Elm_Panel_Data *sd, Eina_Bool scrollable)
 
         eo_do(obj,
               elm_interface_scrollable_content_set(sd->scr_ly));
+        // TIZEN_ONLY(20171109): show and hide necessary object when scrollable is set
+        evas_object_show(sd->scr_ly);
+        //
         sd->freeze = EINA_TRUE;
         elm_layout_content_set(sd->scr_ly, "elm.swallow.content", sd->bx);
         if (sd->content) elm_widget_sub_object_add(sd->scr_ly, sd->content);
@@ -1808,10 +1817,19 @@ _elm_panel_scrollable_set(Eo *obj, Elm_Panel_Data *sd, Eina_Bool scrollable)
 
         elm_widget_resize_object_set(obj, NULL, EINA_TRUE);
         elm_widget_sub_object_add(obj, sd->scr_edje);
+        // TIZEN_ONLY(20171109): show and hide necessary object when scrollable is set
+        evas_object_hide(sd->scr_edje);
+        //
 
         elm_widget_resize_object_set(obj, sd->panel_edje, EINA_TRUE);
+        // TIZEN_ONLY(20171109): show and hide necessary object when scrollable is set
+        evas_object_show(sd->panel_edje);
+        //
 
         elm_layout_content_unset(sd->scr_ly, "elm.swallow.content");
+        // TIZEN_ONLY(20171109): show and hide necessary object when scrollable is set
+        evas_object_hide(sd->scr_ly);
+        //
         elm_layout_content_set(obj, "elm.swallow.content", sd->bx);
         if (sd->content) elm_widget_sub_object_add(obj, sd->content);
      }