         if (!isNaN(obj.explicitMaxWidth))
             maxWidth = obj.explicitMaxWidth;
         else
-            maxWidth = Number.MAX_VALUE;
+            maxWidth = DEFAULT_MAX_WIDTH;
 
         if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
         {

    //
    //--------------------------------------------------------------------------


    /**
     *  @return Returns the preferred width (untransformed) of the IUIComponent.

        if(!isNaN(obj.explicitMaxHeight))
            maxHeight = obj.explicitMaxHeight;
        else
            maxHeight = DEFAULT_MAX_HEIGHT;

        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
        {
