             minimizeButton = new Button();
             minimizeButtonSkin = getStyle("minimizeButtonSkin");
             if (minimizeButtonSkin)
-            	 minimizeButton.setStyle("skin", minimizeButtonSkin);
+                 minimizeButton.setStyle("skin", minimizeButtonSkin);
             minimizeButton.focusEnabled = false;
             minimizeButton.enabled = window.minimizable;
-			minimizeButton.addEventListener(MouseEvent.MOUSE_DOWN,
-											button_mouseDownHandler);
-			minimizeButton.addEventListener(MouseEvent.CLICK,
-											minimizeButton_clickHandler);
+            minimizeButton.addEventListener(MouseEvent.MOUSE_DOWN,
+                                            button_mouseDownHandler);
+            minimizeButton.addEventListener(MouseEvent.CLICK,
+                                            minimizeButton_clickHandler);
             addChild(minimizeButton);
         }
 

        }

        var titleAlign:String =
			String(getStyle("titleAlignment"));
        if (titleAlign == "center" || titleAlign == "left")
 			placeTitle(titleAlign, leftOffset, rightOffset, buttonAlign);
        else if (isMac())
            placeTitle("center",  leftOffset, rightOffset, buttonAlign);
        else

        titleTextField.validateNow();

        var charWidth:Number = titleTextField.getLineMetrics(0).width /
                               titleTextField.length;

        if (titleAlign == "left")
        {
            if (buttonAlign == "left")
            {
                titleTextField.setActualSize(
                    width - leftOffset - rightOffset - 2 -
                    Math.max((closeButton.x + closeButton.measuredWidth),
                    (minimizeButton.x + minimizeButton.measuredWidth),
                    (maximizeButton.x + maximizeButton.measuredWidth)),
