diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-03-05 10:44:15 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-03-05 10:44:15 +0100 |
| commit | 3d9e22120b40a0a4eb470bc6ceb3de8879f74c8d (patch) | |
| tree | f7de48e66b09ad9427faa155be1829347b46f8b7 /src/GraphicObjects/PrivateContainer.cs | |
| parent | b7e8ad35f6f8ce7db30f9dde5cd2628c82f34f8b (diff) | |
split update registration and user
Diffstat (limited to 'src/GraphicObjects/PrivateContainer.cs')
| -rw-r--r-- | src/GraphicObjects/PrivateContainer.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/GraphicObjects/PrivateContainer.cs b/src/GraphicObjects/PrivateContainer.cs index 3a3d9067..1aa39633 100644 --- a/src/GraphicObjects/PrivateContainer.cs +++ b/src/GraphicObjects/PrivateContainer.cs @@ -95,10 +95,10 @@ namespace Crow if (child == null) return base.measureRawSize (lt); if (lt == LayoutingType.Width) - return child.RegisteredLayoutings.HasFlag(LayoutingType.Width) ? + return child.QueuedLayoutings.HasFlag(LayoutingType.Width) ? -1 : child.Slot.Size.Width + 2 * Margin; else - return child.RegisteredLayoutings.HasFlag(LayoutingType.Height) ? + return child.QueuedLayoutings.HasFlag(LayoutingType.Height) ? -1 : child.Slot.Size.Height + 2 * Margin; } public override bool UpdateLayout (LayoutingType layoutType) @@ -127,13 +127,13 @@ namespace Crow case LayoutingType.Width: if (child != null) { if (child.Visible) - child.RegisterForLayouting (LayoutingType.X | LayoutingType.Width); + child.EnqueueForLayouting (LayoutingType.X | LayoutingType.Width); } break; case LayoutingType.Height: if (child != null) { if (child.Visible) - child.RegisterForLayouting (LayoutingType.Y | LayoutingType.Height); + child.EnqueueForLayouting (LayoutingType.Y | LayoutingType.Height); } break; } @@ -148,11 +148,11 @@ namespace Crow break; case LayoutingType.Width: if (this.Bounds.Width < 0) - this.RegisterForLayouting (LayoutingType.Width); + this.EnqueueForLayouting (LayoutingType.Width); break; case LayoutingType.Height: if (this.Bounds.Height < 0) - this.RegisterForLayouting (LayoutingType.Height); + this.EnqueueForLayouting (LayoutingType.Height); break; } } |