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

    Spark Label Whitespaces




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


      <s:Group y="200">


                  <s:HorizontalLayout />


              <s:Label text="hello1" />

              <s:Label text="                "/>

              <s:Label text="hello2" />



      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.