Interface.LayoutingQueue.RemoveAll (lq => lq.GraphicObject == this && (layoutType & (int)lq.LayoutType) > 0);\r
\r
if ((layoutType & (int)LayoutingType.Width) > 0) {\r
-\r
- //force sizing to fit if parent is sizing on children and \r
- //this object has stretched size\r
-// if (Parent.getBounds ().Width < 0 && Width == 0)\r
-// Width = -1;\r
- \r
if (Bounds.Width == 0) //stretch in parent\r
Interface.LayoutingQueue.EnqueueAfterParentSizing (LayoutingType.Width, this);\r
else if (Bounds.Width < 0) //fit \r
}\r
\r
if ((layoutType & (int)LayoutingType.Height) > 0) {\r
-\r
- //force sizing to fit if parent is sizing on children\r
-// if (Parent.getBounds ().Height < 0 && Height == 0)\r
-// Height = -1;\r
-\r
if (Bounds.Height == 0) //stretch in parent\r
Interface.LayoutingQueue.EnqueueAfterParentSizing (LayoutingType.Height, this);\r
else if (Bounds.Height < 0) //fit \r
LastSlots.Y = Slot.Y;\r
break;\r
case LayoutingType.Width:\r
+ //force sizing to fit if parent is sizing on children and\r
+ //this object has stretched size\r
+ if (Parent.getBounds ().Width < 0 && Width == 0)\r
+ Width = -1;\r
+\r
if (Width > 0)\r
Slot.Width = Width;\r
else if (Width < 0)\r
LastSlots.Width = Slot.Width;\r
break;\r
case LayoutingType.Height:\r
+ //force sizing to fit if parent is sizing on children\r
+ if (Parent.getBounds ().Height < 0 && Height == 0)\r
+ Height = -1;\r
+\r
if (Height > 0)\r
Slot.Height = Height;\r
else if (Height < 0)\r