diff --git a/CodeBeam.MudBlazor.Extensions/Components/Splitter/MudSplitter.razor b/CodeBeam.MudBlazor.Extensions/Components/Splitter/MudSplitter.razor index cce88a51..d2ffe257 100644 --- a/CodeBeam.MudBlazor.Extensions/Components/Splitter/MudSplitter.razor +++ b/CodeBeam.MudBlazor.Extensions/Components/Splitter/MudSplitter.razor @@ -30,6 +30,6 @@ } .mud-splitter-content-@_styleGuid { - @($"height: {(!string.IsNullOrWhiteSpace(Height) ? Height : "0px ")} !important;") + @EffectiveHeight } diff --git a/CodeBeam.MudBlazor.Extensions/Components/Splitter/MudSplitter.razor.cs b/CodeBeam.MudBlazor.Extensions/Components/Splitter/MudSplitter.razor.cs index 74137c72..db0d6b49 100644 --- a/CodeBeam.MudBlazor.Extensions/Components/Splitter/MudSplitter.razor.cs +++ b/CodeBeam.MudBlazor.Extensions/Components/Splitter/MudSplitter.razor.cs @@ -139,7 +139,7 @@ public partial class MudSplitter : MudComponentBase string EffectiveStartStyle { get { return !string.IsNullOrWhiteSpace(StartContentStyle) ? StartContentStyle : !string.IsNullOrWhiteSpace(ContentStyle) ? ContentStyle : StyleContent; } } string EffectiveEndStyle { get { return !string.IsNullOrWhiteSpace(EndContentStyle) ? EndContentStyle : !string.IsNullOrWhiteSpace(ContentStyle) ? ContentStyle : StyleContent; } } - string EffectiveHeight { get { return $"height:{(!string.IsNullOrWhiteSpace(Height) ? Height : "0px")} !important;"; } } + string EffectiveHeight { get { return !string.IsNullOrWhiteSpace(Height) ? $"height:{Height} !important;" : null; } } string EffectiveBarStyle { get { return !string.IsNullOrWhiteSpace(BarStyle) ? BarStyle : StyleBar; } } string EffectiveColor { get { return $"background-color:var(--mud-palette-{(Color == Color.Default ? "action-default" : Color.ToDescriptionString())}) !important;"; } }