[NUI] Fix to remove Button's min size
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 20 Feb 2023 08:47:32 +0000 (17:47 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Mon, 20 Feb 2023 08:58:10 +0000 (17:58 +0900)
To support button size set by user, Button's min size is removed.

src/Tizen.NUI.Components/Theme/DefaultThemeCommon.cs

index 371b854..b43a8d3 100755 (executable)
@@ -39,7 +39,6 @@ namespace Tizen.NUI.Components
             // Button base style
             theme.AddStyleWithoutClone("Tizen.NUI.Components.Button", new ButtonStyle()
             {
-                MinimumSize = new Size(252, 48),
                 Padding = new Extents(32, 32, 8, 8),
                 ItemSpacing = new Size2D(8, 8),
                 CornerRadius = 12.0f,
@@ -63,7 +62,6 @@ namespace Tizen.NUI.Components
             // Outlined Button style
             theme.AddStyleWithoutClone("Tizen.NUI.Components.Button.Outlined", new ButtonStyle()
             {
-                MinimumSize = new Size(252, 48),
                 Padding = new Extents(32, 32, 8, 8),
                 ItemSpacing = new Size2D(8, 8),
                 CornerRadius = 12.0f,
@@ -96,7 +94,6 @@ namespace Tizen.NUI.Components
             // TextOnly Button style
             theme.AddStyleWithoutClone("Tizen.NUI.Components.Button.TextOnly", new ButtonStyle()
             {
-                MinimumSize = new Size(120, 48),
                 Padding = new Extents(32, 32, 8, 8),
                 ItemHorizontalAlignment = HorizontalAlignment.Center,
                 ItemVerticalAlignment = VerticalAlignment.Center,