[ElmSharp] Remove layout for Button 46/149746/1
authorJeonghyun Yun <jh0506.yun@samsung.com>
Wed, 13 Sep 2017 04:46:57 +0000 (13:46 +0900)
committerJeonghyun Yun <jh0506.yun@samsung.com>
Wed, 13 Sep 2017 04:49:00 +0000 (13:49 +0900)
Remove internal layout for Elm.Button because of floating button issue.
There are no issues with this deletion because button theme already have opacity part in all profile efl-theme.
Button theme will have this opacity part next version also.

TASK=TCAPI-2682, EFL-981

Change-Id: I75e9daffd13ac3823fcc55a7a4b7012b70f36889
Signed-off-by: Jeonghyun Yun <jh0506.yun@samsung.com>
src/ElmSharp/ElmSharp/Button.cs

index 51a1fa7..627c89d 100755 (executable)
@@ -165,13 +165,7 @@ namespace ElmSharp
 
         protected override IntPtr CreateHandle(EvasObject parent)
         {
-            IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
-            Interop.Elementary.elm_layout_theme_set(handle, "layout", "elm_widget", "default");
-
-            RealHandle = Interop.Elementary.elm_button_add(handle);
-            Interop.Elementary.elm_object_part_content_set(handle, "elm.swallow.content", RealHandle);
-
-            return handle;
+            return Interop.Elementary.elm_button_add(parent.Handle);
         }
     }
-}
\ No newline at end of file
+}