4 Replies Latest reply on Feb 3, 2012 3:25 PM by drkstr_1

    Spark Label Whitespaces

    gordon277

      Hi,

       

      Does anyone know how to make it so that the Spark Label doesn't automatically trim whitespaces? For example

       

      <s:Group y="200">

              <s:layout>

                  <s:HorizontalLayout />

              </s:layout>

              <s:Label text="hello1" />

              <s:Label text="                "/>

              <s:Label text="hello2" />

          </s:Group>

       

      The 2nd label will not show up. Or if I set it in code like this:

       

      label.text = "hello                  ";

      The trailing spaces will not show up in the label.

       

      The reason I'm doing this is so that I can create dynamic text that I can switch out, highlight, make clickable, etc... Stringing labels together is the best way I can think of doing it.

       

      Thanks