                     
                     var blockIndent:Number = Number(_defaultTextFormat.blockIndent);
                     var indent:Number = Number(_defaultTextFormat.indent);
-                    var leftMargin:Number = Number(_defaultTextFormat.leftMargin);
-                    var rightMargin:Number = Number(_defaultTextFormat.rightMargin);
-                    
+
                     // Factor in indents and margins if the combined total
                     // is positive.
                     if (blockIndent + indent + leftMargin > 0)

                    totalIndent = 0;                
               else if (totalIndent > _width - PADDING_LEFT - PADDING_RIGHT)                
                    totalIndent = _width - PADDING_LEFT - PADDING_RIGHT;
                
                if (!wordWrap)
                    rightMargin = 0;
                
                maxLineWidth = 
                    maxLineWidthBeforeIndent - totalIndent - rightMargin;

                // Stay within the bounds to avoid exception.  Since 
                // fitSomething is true it is okay if maxLineWidth is < 0.

		
        var blockIndent:Number = Number(_defaultTextFormat.blockIndent);
        var indent:Number = Number(_defaultTextFormat.indent);
        
		var maxLineWidthBeforeIndent:Number =
			wordWrap ? innerWidth : TextLine.MAX_LINE_WIDTH;
