 
             updateCallbacks();
 
-            var childList:IChildList = (this is IRawChildrenContainer) ?
-                IRawChildrenContainer(this).rawChildren : IChildList(this);
-            var n:int = childList.numChildren;
-            for (var i:int = 0; i < n; i++)
+			value ++;
+		}
+		else if (value == 0)
+			_nestLevel = value = 0;
+		else
+			value ++;
+			
+		var childList:IChildList = (this is IRawChildrenContainer) ?
+			IRawChildrenContainer(this).rawChildren : IChildList(this);
+		
+        var n:int = childList.numChildren;
+        for (var i:int = 0; i < n; i++)
+        {
+            var ui:ILayoutManagerClient  = childList.getChildAt(i) as ILayoutManagerClient;
+            if (ui)
             {
-                var ui:ILayoutManagerClient  = childList.getChildAt(i) as ILayoutManagerClient;
-                if (ui)
-                {
-                    ui.nestLevel = value + 1;
-                }
-                else
-                {
-                    var textField:IUITextField = childList.getChildAt(i) as IUITextField;
-
-                    if (textField)
-                        textField.nestLevel = value + 1;
-                }
+                ui.nestLevel = value;
+            }
+            else
+            {
+                var textField:IUITextField = childList.getChildAt(i) as IUITextField;
+
+                if (textField)
+                    textField.nestLevel = value;
             }
         }
     }

        {
            invalidatePropertiesFlag = true;

            if (parent && UIComponentGlobals.layoutManager)
                UIComponentGlobals.layoutManager.invalidateProperties(this);
        }
    }

        {
            invalidateSizeFlag = true;

            if (nestLevel && UIComponentGlobals.layoutManager)
                UIComponentGlobals.layoutManager.invalidateSize(this);
        }
    }
