From: jpbruyere Date: Tue, 18 Oct 2016 16:02:16 +0000 (+0200) Subject: add RegisterLayouting for position when vert or horiz align changed X-Git-Tag: v0.5.1~28^2~26 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=6006dad818798df4e8b7d0299a18f325a2d8a0a7;p=jp%2Fcrow.git add RegisterLayouting for position when vert or horiz align changed --- diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index e69aaaca..b58bf7eb 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -226,6 +226,7 @@ namespace Crow verticalAlignment = value; NotifyValueChanged("VerticalAlignment", verticalAlignment); + RegisterForLayouting (LayoutingType.Y); } } [XmlAttributeAttribute()][DefaultValue(HorizontalAlignment.Center)] @@ -237,6 +238,7 @@ namespace Crow horizontalAlignment = value; NotifyValueChanged("HorizontalAlignment", horizontalAlignment); + RegisterForLayouting (LayoutingType.X); } } [XmlAttributeAttribute()][DefaultValue(0)]