         // - compose width is specified
         // - explicit line breaking is not used
         // - content doesn't fit
-        if (truncation && getStyle("lineBreak") == "toFit" &&
-            !doesComposedTextFit(height, allLinesComposed, truncation))
+        if (maxDisplayedLines && getStyle("lineBreak") == "toFit" &&
+            !doesComposedTextFit(height, allLinesComposed, maxDisplayedLines))
         {
             truncateText(width, height);
         }

        }
        
        // The text was truncated.
        isTextTruncated = true;
    }
        
    /** 

//  Styles
//--------------------------------------

include "../styles/metadata/BasicInheritingTextStyles.as"
include "../styles/metadata/BasicNonInheritingTextStyles.as"

//--------------------------------------
//  Other metadata
