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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:38:06+00:00 2026-05-15T08:38:06+00:00

I have an mxml panel in which I’m using a repeater. The panel can

  • 0

I have an mxml panel in which I’m using a repeater. The panel can be resized horizontally and I would like for the repeated components to resize together with panel. Here is a simplified example of how things look like:

<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" ...>
    <!-- scripts and some controls -->
    <mx:VBox width="100%">
        <core:Repeater width="100%" dataProvider="model">
            <ns1:MyItemRenderer width="100%" />
        </core:Repeater>
    </mx:VBox>
</mx:TitleWindow>

When I resize the component, the width of the repeated items does not change.

There also buttons and event handlers, which add and remove items from the model. When this is done, the repeater updates to display the correct number of items and all the items are resized correctly.

I have not been able to get the items to resize when the root panel is resized. I can see, that the VBOx around the repeater is getting a resize event. However, the repeated items are not getting the event. I tried to dispatch a resize event to the repeated items manually from a resize handler I hooked up to the VBox but that didn’t help.

I also tried adding and removing a dummy-item from the ArrayCollection which is the dataProvider (because that triggers a correct resize otherwise as mentioned above) However, doing this in the resize handler of the VBox just leads to the repeater not showing any items at all.

Is there any way to get items in a repeater to resize with their enclosing container?

The ItemRenderer I’m using resizes correctly when used in a mx:List. It is built so it can work both with the data property set by the List container an getRepeaterItem() when used in a Repeater. In this particular case, I cannot use the List as a container because of the way it behaves with regards to controlling its height via the rowCount, height and maxHeight properties which doesn’t work out for me in this particular case (I spare you the details).

  • 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-15T08:38:07+00:00Added an answer on May 15, 2026 at 8:38 am

    For the record, I figured out the following “solution”:

    Use the maxHeight attribute on the box enclosing the repeater, binding it to an expression that derives the correct value from the other components… I still need to hardcode any space I want to reserve for components that come after the box containing the repeater if I don’t want to have them pushed out of the enclosing panel but it is good enough for now.

    essentially:

    <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" ...>
        <!-- scripts and some controls -->
        <mx:VBox id="outerBox" height="100%">
            <mx:VBox id="innerBox" width="100%"
                     maxHeight="{outerBox.height - innerBox.y - 40}"> 
                     <!-- reserve 40 px for the button -->
                <core:Repeater width="100%" dataProvider="model">
                    <ns1:MyItemRenderer width="100%" />
                </core:Repeater>
            </mx:VBox>
            <mx:Button label="Stay Visible"/>
        </mx:VBox>
    </mx:TitleWindow>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have several mxml components in an app, all of which need the same
I am creating an application in which I have two mxml components, MainPanel.mxml and
in my project I have a Panel which is using a custom skin that
I have defined small MXML component which calls web service which returns random number
I have a label component in a mxml file like below <mx:Label x=700 y=409
So I have that panel or any other mxml component. I want somehow to
The spark panel component for example can be written like this <Panel title=Skinny> <child
I have some components declared in MXML tags, with some properties and event handlers.
I have a custom component called shopView which is an MXML skinnable component. I
I have an MXML file, which references an external script file for all its

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.