4 Replies Latest reply on Apr 5, 2011 2:00 PM by flex@relax

    Flex 4  verticalLineScrollSize Equivalent

    jfillman Level 1

      I can't seem to find any equivalent to verticalLineScrollSize in Flex 4. It doesn't seem to be an attribute of any of the containers, or of the scroller.

        • 1. Re: Flex 4  verticalLineScrollSize Equivalent
          Shongrunden Adobe Employee

          You will probably want to use the getVerticalScrollPositionDelta() method of the layout:


          <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                      import spark.core.NavigationUnit;
                      private function onClick():void {
                          vl.verticalScrollPosition += vl.getVerticalScrollPositionDelta(NavigationUnit.DOWN);
              <s:Button label="increment" click="onClick()" right="0" />
              <s:Scroller id="scroller" width="100" height="70">
                  <s:Group id="viewport">
                          <s:VerticalLayout id="vl" gap="0" />
                      <s:Button label="1" />
                      <s:Button label="2" />
                      <s:Button label="3" />
                      <s:Button label="4" />
                      <s:Button label="5" />
                      <s:Button label="6" />
          • 2. Re: Flex 4  verticalLineScrollSize Equivalent
            jfillman Level 1

            I have a fairly tall/long container that requires scrolling. The default seems

            to be 1 pixel, so it takes quite a bit of scrolling to get to the bottom. I used to use

            verticalLineScrollSize="3". It's not apparent to me how to accomplish this with the


            • 3. Re: Flex 4  verticalLineScrollSize Equivalent
              Flex harUI Adobe Employee

              Try changing stepSize on the scrollbar

              • 4. Re: Flex 4  verticalLineScrollSize Equivalent
                flex@relax Level 1

                Hi Team,

                                   I have a problem and I'm trying to find a solution of. I have a scroller containing a DataGroup of visual charts. I want to slow down the scrolling by clicking of buttons as I've registered the mouseWheelChanging event handler and mouse wheel is now controlled.


                But when I click on the up and down buttons of the scroller, the content seems to scroll a lot more than what it does on mouse scroll. It scrolls just like when you click in empty area of a scroll bar on a web page up or down the thumb. Rather it should only scroll a few lines vertically so the content doesn't disappear suddenly. Rather it looks moving vertically up in several step before getingg off the stage.


                I tried settings scroller.verticalScrollBar.stepSize = 1 on creationComplete of Scroller but of no use.


                Any Ideas ?