2 Replies Latest reply on Nov 26, 2010 9:30 PM by oaroar

    Scroller not updating

    oaroar

      Hi,

       

      I have a application with a scroller. Inside the scroller, is a box wich can be moved. The box is initially positioned "out of bounds", but when I click and drag the box back inside, the scrolle does not update, and the scrollbars are still present.

       

      I'm probably doing something wrong, but perhaps someone can enlighten me?

       

      Example application:

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
                                  xmlns:s="library://ns.adobe.com/flex/spark" 
                                  xmlns:mx="library://ns.adobe.com/flex/mx"
                                  width="500" height="500">
           
           <s:Scroller
                top="5" bottom="5" left="5" right="5">
                <s:Group
                     width="100%" height="100%">
                
                     <s:Group id="moveMe"
                          buttonMode="true"
                          x="450"
                          width="100" height="100"
                          mouseDown="moveMe.startDrag();" mouseUp="stopDrag();">
                          
                          <s:Rect width="100%" height="100%">
                               <s:fill>
                                    <s:SolidColor color="#FF0000" />
                               </s:fill>
                          </s:Rect>
                          
                     </s:Group>
                     
                </s:Group>
           </s:Scroller>
           
           
      </s:WindowedApplication>