diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-04 11:28:09 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-04 11:28:09 +0100 |
| commit | 27a85f2d4e9987ac1809199e280e17a36d68c783 (patch) | |
| tree | 48a15efb23c45724f0d44a0c01582f037c3acaee /src/GraphicObjects/Wrapper.cs | |
| parent | 5bcd45c3ccc34edc68188a3acdb09e742b21aef3 (diff) | |
crowIde wip, docker wip, stack remove child debug
Diffstat (limited to 'src/GraphicObjects/Wrapper.cs')
| -rw-r--r-- | src/GraphicObjects/Wrapper.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/GraphicObjects/Wrapper.cs b/src/GraphicObjects/Wrapper.cs index 3f5dfdf0..a7f5f73b 100644 --- a/src/GraphicObjects/Wrapper.cs +++ b/src/GraphicObjects/Wrapper.cs @@ -104,7 +104,7 @@ namespace Crow this.RegisterForLayouting (LayoutingType.Width); break; case LayoutingType.Height: - if (Orientation == Orientation.Vertical && go.Height.Units == Unit.Percent) { + if (Orientation == Orientation.Vertical && go.Height.IsRelativeToParent) { go.Height = Measure.Fit; return; } @@ -137,7 +137,7 @@ namespace Crow foreach (GraphicObject c in Children) { if (!c.Visible) continue; - if (c.Height.Units == Unit.Percent && + if (c.Height.IsRelativeToParent && c.RegisteredLayoutings.HasFlag (LayoutingType.Height)) { childrenRWLock.ExitReadLock(); return -1; @@ -172,7 +172,7 @@ namespace Crow foreach (GraphicObject c in Children) { if (!c.Visible) continue; - if (c.Width.Units == Unit.Percent && + if (c.Width.IsRelativeToParent && c.RegisteredLayoutings.HasFlag (LayoutingType.Width)) { childrenRWLock.ExitReadLock(); return -1; @@ -217,13 +217,13 @@ namespace Crow public override void OnLayoutChanges (LayoutingType layoutType) { #if DEBUG_LAYOUTING - CurrentInterface.currentLQI.Slot = LastSlots; - CurrentInterface.currentLQI.Slot = Slot; + IFace.currentLQI.Slot = LastSlots; + IFace.currentLQI.Slot = Slot; #endif switch (layoutType) { case LayoutingType.Width: foreach (GraphicObject c in Children) { - if (c.Width.Units == Unit.Percent) + if (c.Width.IsRelativeToParent) c.RegisterForLayouting (LayoutingType.Width); } if (Height == Measure.Fit) @@ -232,7 +232,7 @@ namespace Crow break; case LayoutingType.Height: foreach (GraphicObject c in Children) { - if (c.Height.Units == Unit.Percent) + if (c.Height.IsRelativeToParent) c.RegisterForLayouting (LayoutingType.Height); } if (Width == Measure.Fit) |