mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
use default wpf size instead of 100x100
This commit is contained in:
parent
79258a8bc7
commit
72fc1e0e15
@ -522,8 +522,8 @@ namespace Bloxstrap.UI.Elements.Bootstrapper
|
|||||||
if (margin != null)
|
if (margin != null)
|
||||||
uiElement.Margin = (Thickness)margin;
|
uiElement.Margin = (Thickness)margin;
|
||||||
|
|
||||||
uiElement.Height = ParseXmlAttributeClamped(xmlElement, "Height", 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: 100.0, 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
|
// default values of these were originally Stretch but that was no good
|
||||||
uiElement.HorizontalAlignment = ParseXmlAttribute<HorizontalAlignment>(xmlElement, "HorizontalAlignment", HorizontalAlignment.Left);
|
uiElement.HorizontalAlignment = ParseXmlAttribute<HorizontalAlignment>(xmlElement, "HorizontalAlignment", HorizontalAlignment.Left);
|
||||||
|
Loading…
Reference in New Issue
Block a user