     {
         if (!nativeWindow.closed)
         {
-	        if (getStyle("headerHeight") != null)
-	            return getStyle("headerHeight");
-	        if (systemManager.stage.nativeWindow.systemChrome != "none")
-	            return 0;
-	        if (titleBar)
-	            return(titleBar.getExplicitOrMeasuredHeight());
+            if (getStyle("headerHeight") != null)
+                return getStyle("headerHeight");
+            if (systemManager.stage.nativeWindow.systemChrome != "none")
+                return 0;
+            if (titleBar)
+                return(titleBar.getExplicitOrMeasuredHeight());
         }
         return 0;
     }

    {
        if (!nativeWindow.closed)
        {
	        var e:NativeWindowDisplayStateEvent;
	        if (stage.nativeWindow.displayState == NativeWindowDisplayState.MAXIMIZED)
	        {
	            e = new NativeWindowDisplayStateEvent(
	                        NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGING,
	                        false, true, NativeWindowDisplayState.MAXIMIZED,
	                        NativeWindowDisplayState.NORMAL);
	            stage.nativeWindow.dispatchEvent(e);
	            if (!e.isDefaultPrevented())
	                nativeWindow.restore();
	        }
	        else if (stage.nativeWindow.displayState == NativeWindowDisplayState.MINIMIZED)
	        {
	            e = new NativeWindowDisplayStateEvent(
	                NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGING,
	                false, true, NativeWindowDisplayState.MINIMIZED,
	                NativeWindowDisplayState.NORMAL);
	            stage.nativeWindow.dispatchEvent(e);
	            if (!e.isDefaultPrevented())
	                nativeWindow.restore();
	        }
	    }
    }

    /**


    /**
     *  @private
     *  Storage for the title property.
     */
    private var _title:String = "";

