2 Replies Latest reply on Jul 4, 2011 7:53 AM by daslicht


    daslicht Level 2

      How do I create such layout behaviour:




      They use a Flex Vertical  Scroller which is shown once the page rech a certain size.

      But at the same time they have a "infinite background" How is that working ?




        • 1. Re: Layout
          daslicht Level 2
          <?xml version="1.0" encoding="utf-8"?>
               <!--BIG Background-->
               <s:Rect left="0" right="0" top="0" bottom="0" minHeight="2500" height='1440'>
                         <s:SolidColor  color="0x888888"/>
               <!--Content with minimum required Height-->
               <s:Group left="20" top="1" width="400" height="100%">
                    <s:Scroller  left="0" right="0" top="0" bottom="0">
                         <s:Group id="g"   >
                              <s:Rect left="0" right="0" top="0" bottom="0" minHeight="400" height='100%'>
                                        <s:SolidColor  color="0x000000"/>




          Good starting pount but how to use a fixed heigh content ? which show scrollbars one a minimum is reached :/



          got it:) but how to prevent that the content jump to the left once the vertical scrollbar is shown ?

          • 2. Re: Layout
            daslicht Level 2

            I have the following Application, once the minimum size is reached the scrollbar is shown.

            Unfortunately each time the scrollbar is shown, the whole content jumps to the left size as wide as the scollbar is.


            How to create a horrizontal centered layout with out that jump ?

             the answer is to create acustom scroller skin