Skip to content

Commit 59d73c1

Browse files
YomodoJeffrey Jangli
andauthored
Fixed default height (#301)
Co-authored-by: Jeffrey Jangli <Jeffrey.Jangli@kpn.com>
1 parent d692fac commit 59d73c1

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CodeBeam.MudBlazor.Extensions/Components/Splitter/MudSplitter.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
}
3131
3232
.mud-splitter-content-@_styleGuid {
33-
@($"height: {(!string.IsNullOrWhiteSpace(Height) ? Height : "0px ")} !important;")
33+
@($"height:{EffectiveHeight}")
3434
}
3535
</style>

CodeBeam.MudBlazor.Extensions/Components/Splitter/MudSplitter.razor.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public partial class MudSplitter : MudComponentBase
3636
/// <summary>
3737
/// The height of splitter. For example: "400px"
3838
/// </summary>
39+
/// <remarks>The default is 100%</remarks>
3940
[Parameter]
4041
public string Height { get; set; }
4142

@@ -139,7 +140,7 @@ public partial class MudSplitter : MudComponentBase
139140

140141
string EffectiveStartStyle { get { return !string.IsNullOrWhiteSpace(StartContentStyle) ? StartContentStyle : !string.IsNullOrWhiteSpace(ContentStyle) ? ContentStyle : StyleContent; } }
141142
string EffectiveEndStyle { get { return !string.IsNullOrWhiteSpace(EndContentStyle) ? EndContentStyle : !string.IsNullOrWhiteSpace(ContentStyle) ? ContentStyle : StyleContent; } }
142-
string EffectiveHeight { get { return $"height:{(!string.IsNullOrWhiteSpace(Height) ? Height : "0px")} !important;"; } }
143+
string EffectiveHeight { get { return $"height:{(!string.IsNullOrWhiteSpace(Height) ? Height : null)} !important;"; } }
143144
string EffectiveBarStyle { get { return !string.IsNullOrWhiteSpace(BarStyle) ? BarStyle : StyleBar; } }
144145
string EffectiveColor { get { return $"background-color:var(--mud-palette-{(Color == Color.Default ? "action-default" : Color.ToDescriptionString())}) !important;"; } }
145146

0 commit comments

Comments
 (0)