Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3444420
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:54:47+00:00 2026-05-18T08:54:47+00:00

I am following this example in order to have scrollbars in my application http://blog.flexexamples.com/2010/11/03/adding-scroll-bars-to-an-spark-application-container-in-flex-4/

  • 0

I am following this example in order to have scrollbars in my application
http://blog.flexexamples.com/2010/11/03/adding-scroll-bars-to-an-spark-application-container-in-flex-4/

The difference is tha in my Application file I have a viewstack with three views. The only when the second view comes into display I need my Application to show Scrollbars but it doens’t. If I give my viewstack a fixed height the scrollbars appear but I don’t want to give a fixed width.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:54:48+00:00Added an answer on May 18, 2026 at 8:54 am

    From the Flex 4 SDK doc (link text):

    “The default width and height of a ViewStack container is the width and height of the first child. A ViewStack container does not change size every time you change the active child.

    You can use the following techniques to control the size of a ViewStack container so that it displays all the components inside its children:

    1. Set explicit width and height properties for all children to the same fixed values.
    2. Set percentage-based width and height properties for all children to the same fixed values.
    3. Set width and height properties for the ViewStack container to a fixed or percentage-based value.
    

    The technique that you use is based on your application and the content of your ViewStack container.”

    To get around this you can add a scroller inside navigator contents. Code may look something like this:

    <?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" 
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <s:TabBar dataProvider="{myselfViewStack}"/>
        <mx:ViewStack id="myselfViewStack" left="0" right="0" top="100" bottom="0">
            <s:NavigatorContent>
                <s:Scroller width="100%" height="100%">
                    <s:Group>
                        <!-- scrollbar not shown -->
                        <s:Group width="100%" height="100">
                            <s:Label text="1"/>
                        </s:Group>      
                    </s:Group>
                </s:Scroller>
            </s:NavigatorContent>
            <s:NavigatorContent>
                <s:Scroller width="100%" height="100%">
                    <s:Group>
                        <!-- scrollbar shown -->
                        <!-- Explicit height set in group to "simulate" content -->
                        <s:Group width="100%" height="1500">
                            <s:Label text="2"/>
                        </s:Group>      
                    </s:Group>
                </s:Scroller>
            </s:NavigatorContent>
            <s:NavigatorContent>
                <s:Label text="3"/>
            </s:NavigatorContent>
        </mx:ViewStack>
    </s:Application>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm following this example: http://www.codinghorror.com/blog/2005/12/getting-started-with-indexing-service.html However, the conversion to dataset shows empty columns for
I'm new to cakephp and following this tutorial. http://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html I have created the blog
Check this example before reading the question - http://www.sqlfiddle.com/#!2/fcf3e/8 The following data comes from
I'm following this example for creating a simple Web application using JAX-RS, MongoDB and
In order to make this question easier to describe I have provided the following
In this example: http://jsfiddle.net/ga89T/10/ I have 3 Sections (section 1, section 3 and section
I am following this example (First comment), How to create a custom ListView with
I am following this example to get JSONP data from remote server. jQuery append
Ideally I want a function something like the following (this example doesn't compile): void
When I execute this following code for example: cart.php?p=1&action=add <?php session_start(); if (isset($_GET['p']) &&

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.