             closeButton = new Button();
             closeButtonSkin = getStyle("closeButtonSkin");
             if (closeButtonSkin)
-           		closeButton.setStyle("skin", closeButtonSkin);
+                closeButton.setStyle("skin", closeButtonSkin);
             closeButton.focusEnabled = false;
-			closeButton.addEventListener(MouseEvent.MOUSE_DOWN,
-										 button_mouseDownHandler);
-			closeButton.addEventListener(MouseEvent.CLICK,
-										 closeButton_clickHandler);
+            closeButton.addEventListener(MouseEvent.MOUSE_DOWN,
+                                         button_mouseDownHandler);
+            closeButton.addEventListener(MouseEvent.CLICK,
+                                         closeButton_clickHandler);
             addChild(closeButton);
         }
     }

            else
            {
                titleTextField.setActualSize(
                	Math.max(0, Math.min(
                	width - leftOffset - rightOffset,
                	minimizeButton.x )) - 2,
                    measureChromeText(titleTextField).height +
                    UITextField.TEXT_HEIGHT_PADDING);

				titleTextField.move(
					leftOffset,
                 	(height - (measureChromeText(titleTextField).height +
                    UITextField.TEXT_HEIGHT_PADDING))/2);

				titleTextField.truncateToFit();
            }
        }
        else // titleAlign is center

            minimizeButton = new Button();
            minimizeButtonSkin = getStyle("minimizeButtonSkin");
            if (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);
            addChild(minimizeButton);
        }

