]> O.S.I.I.S - jp/crow.git/commitdiff
Qyery position layouting in all not stretched conditions
authorjpbruyere <jp.bruyere@hotmail.com>
Mon, 1 Aug 2016 22:00:47 +0000 (00:00 +0200)
committerjpbruyere <jp.bruyere@hotmail.com>
Mon, 1 Aug 2016 22:00:47 +0000 (00:00 +0200)
modifié :         src/GraphicObjects/PrivateContainer.cs

src/GraphicObjects/PrivateContainer.cs

index 16a797d700831f53649aa0661edd9af8622dbf40..08abf95a5ba9ed522bc1b9b57144226b24b174e6 100644 (file)
@@ -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;