             return fitTBoundsWidth(width, matrix,
                                    explicitWidth, explicitHeight,
                                    preferredWidth, preferredHeight,
-                                   minWidth, minHeight,
-                                   maxWidth, maxHeight);
+                                   newMinWidth, newMinHeight, 
+                                   newMaxWidth, newMaxHeight); 
         }
         else
         {
             return fitTBoundsHeight(height, matrix,
                                     explicitWidth, explicitHeight,
                                     preferredWidth, preferredHeight,
-                                    minWidth, minHeight,
-                                    maxWidth, maxHeight);
+                                    newMinWidth, newMinHeight, 
+                                    newMaxWidth, newMaxHeight); 
         }
     }
     

                actualSize1 = fitTBoundsWidth(width, matrix,
                                              explicitWidth, explicitHeight,
                                              preferredWidth, preferredHeight,
                                              minWidth, minHeight,
                                              maxWidth, maxHeight);

                // If we fit the width, but not the height.
                if (actualSize1)
                {
                    var fitHeight:Number = transformSize(actualSize1.x, actualSize1.y, matrix).y;
                    if (fitHeight - tolerance > height)
                        actualSize1 = null;
                }


                actualSize2 = fitTBoundsHeight(height, matrix,
                                               explicitWidth, explicitHeight,
                                               preferredWidth, preferredHeight,
                                               newMinWidth, newMinHeight, 
                                               newMaxWidth, newMaxHeight); 

                // If we fit the height, but not the width
                if (actualSize2)
                {
                    var fitWidth:Number = transformSize(actualSize2.x, actualSize2.y, matrix).x;
                    if (fitWidth - SOLUTION_TOLERANCE > width)
                        actualSize2 = null;
                }
                
