5 Replies Latest reply on Jul 12, 2010 11:54 PM by Shongrunden

    Line in the middle of a container

    hidarikani Level 2

      This horizontal line is supposed to be in the middle of a container:

           <s:Line xFrom="0" 
                     xTo="100"
                     yFrom="{this.width * .5}"
                     yTo="{this.width *.5}">
                <s:stroke>
                     <s:SolidColorStroke weight="8" />
                </s:stroke>
           </s:Line>
      

       

      But yFrom and yTo are set to 0 and are not updated by binding.

      The line is defined in the component's skin.

      How can I draw a line in the middle of a container?