diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-07 15:44:25 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-07 15:44:25 +0100 |
| commit | 46f593f8d2a9c76b582720e0a44af3075f879a93 (patch) | |
| tree | d24a6665d92bd4fe91ec7a8d34dc3206fc18f8c5 /src/GraphicObjects/GraphicObject.cs | |
| parent | 1c7f2d63a7230cb487faf915b9431784653f48ef (diff) | |
prevent RegisterForLayouting when parent is null, and dequeue LQI when parent of GO is null
Diffstat (limited to 'src/GraphicObjects/GraphicObject.cs')
| -rw-r--r-- | src/GraphicObjects/GraphicObject.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index 40f5dcf7..d04c94d7 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -386,7 +386,7 @@ namespace Crow get { return _maximumSize; } set { _maximumSize = value; } } - [XmlAttributeAttribute()][DefaultValue("0;0")] + [XmlAttributeAttribute()][DefaultValue("1;1")] public virtual Size MinimumSize { get { return _minimumSize; } set { _minimumSize = value; } @@ -503,6 +503,8 @@ namespace Crow } public virtual void RegisterForLayouting(LayoutingType layoutType){ + if (Parent == null) + return; //dont set position for stretched item if (Width == 0) layoutType &= (~LayoutingType.X); |