3 Replies Latest reply on Jul 22, 2010 3:40 AM by Paul_Kuhn

    Flex 4 Spark Textarea without border

    Paul_Kuhn Level 1

      Hi,

       

      I have a s:TextArea in Flex 4.1 where I am trying to hide the border. Without success.

       

      I thought this would do it:

       

                  <s:TextArea
                      borderVisible="false">

       

      but the border is still there, also I cannot change the font color.

       

      How would I do that?

       

      Thanks.

      Paul

        • 1. Re: Flex 4 Spark Textarea without border
          Flex harUI Adobe Employee

          Did you get a warning about the borderVisible?  It might not work in the

          theme you are using and you'll need to create a custom skin.

           

          The color style should change the font color.

           

              color="#ff0000"

          1 person found this helpful
          • 2. Re: Flex 4 Spark Textarea without border
            Peter deHaan Level 4

            This works for me in Flex 4.1 and the latest internal builds:

             

            <?xml version="1.0" encoding="utf-8"?>
            <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">
                <s:layout>
                    <s:VerticalLayout paddingLeft="20" paddingTop="20" />
                </s:layout>
                <s:controlBarContent>
                    <s:CheckBox id="ch" label="borderVisible" selected="false" change="ta.setStyle('borderVisible', ch.selected);" />
                    <s:Label id="sdkVer" fontWeight="bold" initialize="sdkVer.text = mx_internal::VERSION;" />
                    <s:Label text="{Capabilities.version}" />
                </s:controlBarContent>
            
                <s:TextArea id="ta"
                            text="The quick brown fox jumps over the lazy cat."
                            borderVisible="false"
                            color="red"/>
            
            </s:Application>
            
            
            
            Peter

            • 3. Re: Flex 4 Spark Textarea without border
              Paul_Kuhn Level 1

              Thanks to all for the answers. Yes it works fine and the border is not displayed!

               

              I had a default CSS with a skinClass to a TextAreaSkin which included a border... This was my mistake here.

               

              Thanks again!

              Paul