aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/PrivateContainer.cs
diff options
context:
space:
mode:
authorj-p <jp.bruyere@live.be>2016-08-02 00:25:42 +0200
committerGitHub <noreply@github.com>2016-08-02 00:25:42 +0200
commit7aa1b2660fa257e570fb75f4c03bb33f1d7d151e (patch)
tree639804dec0ca0d0cfd96cec38489808f9fce197e /src/GraphicObjects/PrivateContainer.cs
parentfd5b776826028a0c12a92f11d1daf4065d4c6024 (diff)
parent77f7028debf55a8d6faff8e88c18e33500867774 (diff)
Merge pull request #13 from jpbruyere/UpdateQueuingReview
Update queuing review and styling debug
Diffstat (limited to 'src/GraphicObjects/PrivateContainer.cs')
-rw-r--r--src/GraphicObjects/PrivateContainer.cs10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/GraphicObjects/PrivateContainer.cs b/src/GraphicObjects/PrivateContainer.cs
index 16a797d7..08abf95a 100644
--- a/src/GraphicObjects/PrivateContainer.cs
+++ b/src/GraphicObjects/PrivateContainer.cs
@@ -126,21 +126,19 @@ namespace Crow
LayoutingType ltChild = LayoutingType.None;
if (layoutType == LayoutingType.Width) {
- if (Width == Measure.Fit)
- return;
if (child.Width.Units == Unit.Percent) {
ltChild |= LayoutingType.Width;
if (child.Width.Value < 100 && child.Left == 0)
ltChild |= LayoutingType.X;
- }
+ } else if (child.Left == 0)
+ ltChild |= LayoutingType.X;
} else if (layoutType == LayoutingType.Height) {
- if (Height == Measure.Fit)
- return;
if (child.Height.Units == Unit.Percent) {
ltChild |= LayoutingType.Height;
if (child.Height.Value < 100 && child.Top == 0)
ltChild |= LayoutingType.Y;
- }
+ } else if (child.Top == 0)
+ ltChild |= LayoutingType.Y;
}
if (ltChild == LayoutingType.None)
return;