1 Reply Latest reply on Jan 12, 2010 1:27 PM by Jason Szeto

    Disable 'truncateToFit' on a Label component?

    Mariush T.

      Hi,

       

      How can i disable 'truncateToFit' on a Spark Label component? Label component doesn't have 'truncateToFit' property.

       

      Mariush

        • 1. Re: Disable 'truncateToFit' on a Label component?
          Jason Szeto Level 3

          Maruish,

           

          I'm attaching the ASDoc descriptoin of TextBase.isTruncated:

           

          A read-only property reporting whether the text has been truncated.

          Truncating text means replacing excess text        with a truncation indicator such as "...".       The truncation indicator is locale-dependent;       it is specified by the "truncationIndicator" resource       in the "core" resource bundle.

           

          If maxDisplayedLines is 0, no truncation occurs.       Instead, the text will simply be clipped        if it doesn't fit within the component's bounds.

           

          If maxDisplayedLines is is a positive integer,        the text will be truncated if necessary to reduce        the number of lines to this integer.

           

          If maxDisplayedLines is -1, the text will be truncated        to display as many lines as will completely fit within the height       of the component.

           

          Truncation is only performed if the lineBreak style is "toFit"; the value of this property       is ignored if lineBreak is "explicit".

          The default value is false.

           

          Jason