diff --git a/src/UkooLabs.SVGSharpie/SvgSvgElement.cs b/src/UkooLabs.SVGSharpie/SvgSvgElement.cs index 1575952..4ed498b 100644 --- a/src/UkooLabs.SVGSharpie/SvgSvgElement.cs +++ b/src/UkooLabs.SVGSharpie/SvgSvgElement.cs @@ -127,9 +127,9 @@ public string ViewBoxAsString set => ViewBox = string.IsNullOrEmpty(value) ? (SvgRect?)null : SvgRect.Parse(value); } - public float ViewWidth => ViewBox?.Width ?? (WidthAsLength?.Value ?? 0); + public float ViewWidth => WidthAsLength?.Value ?? (ViewBox?.Width ?? 0); - public float ViewHeight => ViewBox?.Height ?? (HeightAsLength?.Value ?? 0); + public float ViewHeight => HeightAsLength?.Value ?? (ViewBox?.Height ?? 0); public override string ToString() => $"{string.Join(string.Empty, Children)}";