diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-06 17:01:28 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-06 17:01:28 +0100 |
| commit | 1c7f2d63a7230cb487faf915b9431784653f48ef (patch) | |
| tree | 810803b4065b7fc7f4de5f078aa70f4108adff5c /src/GraphicObjects/GraphicObject.cs | |
| parent | cb91338f8038afbade79f12e04d0294b94f75228 (diff) | |
resolved Checkbox bug (template was modified), adjust several layout registering
Diffstat (limited to 'src/GraphicObjects/GraphicObject.cs')
| -rw-r--r-- | src/GraphicObjects/GraphicObject.cs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index 4d00b99a..40f5dcf7 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -549,13 +549,11 @@ namespace Crow #endif switch (layoutType) { - case LayoutingType.Width: - if (Width != 0 && Parent.getBounds().Width >=0) //update position in parent - this.RegisterForLayouting (LayoutingType.X); + case LayoutingType.Width: + this.RegisterForLayouting (LayoutingType.X); break; case LayoutingType.Height: - if (Height != 0 && Parent.getBounds().Height >=0) //update position in parent - this.RegisterForLayouting (LayoutingType.Y); + this.RegisterForLayouting (LayoutingType.Y); break; } LayoutChanged.Raise (this, new LayoutingEventArgs (layoutType)); |