             {
                 labelWidth = 0;
             }
-            
+
             // button viewHeight may be smaller than the labelDisplay textHeight
             labelHeight = Math.min(viewHeight, textHeight);
-            
+
             if (textAlign == "left")
             {
                 labelX += layoutPaddingLeft;
             }
             else if (textAlign == "right")
             {
-                labelX += (viewWidth - labelWidth - iconWidth - 
+                labelX += (viewWidth - labelWidth - iconWidth -
                     horizontalGap - layoutPaddingRight);
             }
             else // "center" -- default value
             {
-                labelX += ((viewWidth - labelWidth - iconWidth - 
+                labelX += ((viewWidth - labelWidth - iconWidth -
                     horizontalGap - layoutPaddingLeft - layoutPaddingRight) / 2) + layoutPaddingLeft;
             }
-            
+
             if (iconPlacement == IconPlacement.LEFT)
             {
                 labelX += iconWidth + horizontalGap;

            this.removeChild(iconHolder);
            iconHolder = null;
        }
        
        // Set-up the icon
        if (icon)
        {

                iconHeight = iconDisplay.height;
            }
        }

        if (iconPlacement == IconPlacement.LEFT ||
            iconPlacement == IconPlacement.RIGHT)
        {
            horizontalGap = layoutGap;

            if (iconWidth == 0 || textWidth == 0)
                horizontalGap = 0;

            if (textWidth > 0)
            {
                labelWidth =
                    Math.max(Math.min(viewWidth - iconWidth - horizontalGap -
                        layoutPaddingLeft - layoutPaddingRight, textWidth), 0);
            }
