Skip to content

Commit

Permalink
use default wpf size instead of 100x100
Browse files Browse the repository at this point in the history
  • Loading branch information
bluepilledgreat committed Oct 22, 2024
1 parent 79258a8 commit 72fc1e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,8 @@ private static void HandleXmlElement_FrameworkElement(CustomDialog dialog, Frame
if (margin != null)
uiElement.Margin = (Thickness)margin;

uiElement.Height = ParseXmlAttributeClamped(xmlElement, "Height", defaultValue: 100.0, min: 0, max: 1000);
uiElement.Width = ParseXmlAttributeClamped(xmlElement, "Width", defaultValue: 100.0, min: 0, max: 1000);
uiElement.Height = ParseXmlAttributeClamped(xmlElement, "Height", defaultValue: double.NaN, min: 0, max: 1000);
uiElement.Width = ParseXmlAttributeClamped(xmlElement, "Width", defaultValue: double.NaN, min: 0, max: 1000);

// default values of these were originally Stretch but that was no good
uiElement.HorizontalAlignment = ParseXmlAttribute<HorizontalAlignment>(xmlElement, "HorizontalAlignment", HorizontalAlignment.Left);
Expand Down

0 comments on commit 72fc1e0

Please sign in to comment.