 		 * @param event the resize event
 		 */
 		protected function onResize( event:NativeWindowBoundsEvent ):void
-		{
+		{ 
 			// The StageMediator passed in a Rectangle representing the size and location
 			var rect:Rectangle = event.afterBounds;
-			
+			lastRect = windowMetricsProxy.bounds;
 			// Only save the changes to size and location if not minimized or maximized
 			if ( windowMetricsProxy.displayState == NativeWindowDisplayState.NORMAL ) windowMetricsProxy.bounds = rect;
 			

		// Constant for Minimum stage height
		public static const MIN_HEIGHT:Number = 570;
		
		/**
		 * Constructor. 
		 */

			if (firstPass) {
				firstPass = false;
				sendNotification( WINDOW_SHOW );
			}
		}				
		
		/**
