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 8942463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:31:30+00:00 2026-06-15T11:31:30+00:00

When I execute the following application, my Scroller stretches as far as the height

  • 0

When I execute the following application, my Scroller stretches as far as the height of the inner group.

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:s="library://ns.adobe.com/flex/spark" xmlns:fx="http://ns.adobe.com/mxml/2009"> 
    <s:Scroller width="100%" height="100%" verticalScrollPolicy="on">
        <s:Group height="1400"/>
    </s:Scroller>
</s:Application>

Here is what I get:

enter image description here

I would like it to be the same size as my window is.
Could you please explain, what I am doing wrong? Why doesn’t Scroller serve as a viewport?

  • 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-06-15T11:31:31+00:00Added an answer on June 15, 2026 at 11:31 am

    Generally you want to make the height/width of your scroller an explicit value and the height/width of the children a percentage. You’ve done that in reverse. So, like this:

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:s="library://ns.adobe.com/flex/spark" xmlns:fx="http://ns.adobe.com/mxml/2009"> 
        <s:Scroller width="100%" height="1400" verticalScrollPolicy="on">
            <s:Group height="100%"/>
        </s:Scroller>
    </s:Application>
    

    However, that doesn’t solve the problem of making the scroller/group the width of the available window. I would do that by sizing elements in the updateDisplayList() method.

        <?xml version="1.0" encoding="utf-8"?>
        <s:Application xmlns:s="library://ns.adobe.com/flex/spark" xmlns:fx="http://ns.adobe.com/mxml/2009"> 
    <fx:Script>
      protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number:void{
        super.updateDisplayList(unscaledWidth, unscaledHeight);
        myScroller.width = unscaledWidth;
        myScroller.height - unscaledHeight;
        mySCrollingGroup.width = unscaledWidth 
        mySCrollingGroup.height - unscaledHeight;
      }
    </fx:Script>
    
            <s:Scroller verticalScrollPolicy="on" id="myScoller">
                <s:Group id="mySCrollingGroup" />
            </s:Scroller>
        </s:Application>
    

    You may want to tweak the sizing of the myScrollingGroup to accomodate for the scrollbars height/width. Or, you could use the precentHeight/percentWidth properties on the myScrollingGroup and set them to 100%.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I attempt to execute the following non query sql command in my application
I am using following ajax call in my .net application. this function execute on
I have the following projects: MVC Console application Class library Windows forms application COM
How to execute an .exe from c++ console application. I have try the following
I try to execute the following SQL-Statement (in my Java-application): SELECT * FROM Tbl_Job
I wish to execute the following query on my application's SQliteDatabase. String sql =
I have an application that executes the following MySQL query: SELECT 402 AS user_id,
I am trying to execute following query: Insert into pligg_links_temp select * from pligg_links
When I am trying to execute following code to email the contact form details,
I am wondering is there any way to execute following shell script, which waits

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.