             if (viewportGroup && viewportGroup.layout && viewportGroup.layout.useVirtualLayout)
                 viewportGroup.invalidateSize();
             
-            invalidationCount += 1; 
+            invalidationCount++; 
         }
         else
             invalidationCount = 0;
-             
+        
         target.setContentSize(w, h);
     }
 

        {
            var vsbW:Number = vsb.getPreferredBoundsWidth(); 
            var vsbH:Number = hsbVisible ? h - hsb.getPreferredBoundsHeight() : h;
			vsb.setLayoutBoundsSize(vsbW, Math.max(vsb.getMinBoundsHeight(), vsbH));
			
			vsb.setLayoutBoundsPosition(w - vsbW, 0);
        }


    //
    //--------------------------------------------------------------------------   

	/**
	 *  @private
	 *  Used by updateDisplayList() to prevent looping.
	 */
	private var invalidationCount:int = 0;
	
	/**
	 *  @private
	 *  Used by updateDisplayList() to prevent looping.
	 */
	private var removeCount:int = 0;
	
    /**
     *  @private
     */
