Skip to content

Commit bd5b0d1

Browse files
authored
BarChart Width & Height properties translate to wrong style #613 (#614)
1 parent 0d93c46 commit bd5b0d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blazorbootstrap/Components/Charts/BlazorBootstrapChart.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ private string GetChartContainerSizeAsStyle()
9898
var style = "";
9999

100100
if (Width > 0)
101-
style += $"width:{Width.Value.ToString(CultureInfo.InvariantCulture)}{WidthUnit.ToCssString()}";
101+
style += $"width:{Width.Value.ToString(CultureInfo.InvariantCulture)}{WidthUnit.ToCssString()};";
102102

103103
if (Height > 0)
104-
style += $"height:{Height.Value.ToString(CultureInfo.InvariantCulture)}{HeightUnit.ToCssString()}";
104+
style += $"height:{Height.Value.ToString(CultureInfo.InvariantCulture)}{HeightUnit.ToCssString()};";
105105

106106
return style;
107107
}

0 commit comments

Comments
 (0)