]> O.S.I.I.S - jp/crow.git/commitdiff
add RegisterLayouting for position when vert or horiz align changed
authorjpbruyere <jp.bruyere@hotmail.com>
Tue, 18 Oct 2016 16:02:16 +0000 (18:02 +0200)
committerjpbruyere <jp.bruyere@hotmail.com>
Tue, 18 Oct 2016 16:02:16 +0000 (18:02 +0200)
src/GraphicObjects/GraphicObject.cs

index e69aaaca2f9909294e3a0e2df4efce29c147ac01..b58bf7eb2aa409ad5847edaa968d226b1b5a9f8d 100644 (file)
@@ -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)]