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

  • Home
  • SEARCH
  • 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 8757905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:24:49+00:00 2026-06-13T14:24:49+00:00

I have a list control that uses an array collection as a data provider.

  • 0

I have a list control that uses an array collection as a data provider. The array collection is initialized in actionscript. The list looks like this:

<mx:List  width="500" id="activeMessages" styleName="messages" variableRowHeight="true" verticalScrollPolicy="off" horizontalScrollPolicy="off" 
 dataProvider="{activeMessageTitles}"/>

and the styleName .messages is like this:

.messages{
            border-style:solid;
            corner-radius:4;
            border-color:#cccccc;
            padding:0 0 0 0;
            background-color:#DCDCDC;
            margin-bottom:400px;
            padding-bottom:120px;
        }

The array collection is dynamically loaded with data and has been verified, so it does have the requisite data. The requisite data is just random words not sentences and do not exceed more than two words for any given Array.

var activeMessageTitles:ArrayCollection = new ArrayCollection();

The issue is in the formatting. The dataProvider does retrieve all the items and they are rendered in the list. The only problem being that the space between any two row items in the list is huge and it takes up an arbitrary amount of space. I would like the list items to be rendered right after the other instead of having a huge amount of space in the middle.

Can anyone specify what exactly has gone wrong here?

  • 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-13T14:24:51+00:00Added an answer on June 13, 2026 at 2:24 pm

    The problem sounds like virtualization. Lists recycle Item renderers and only use enough to display what is visible on screen. When you scroll, flex will take the renderer that just went out of view, and re-use it for the one coming into view. Depending oh how large the message was in the recycled renderer, it will still retain that large height… even if the new message being inserted into it is small.

    To fix this, create an item renderer (tons of tutorials out there) and override its set data() method so you can resize the renderers to fit the new content.

    see this link for full details:

    http://www.adobe.com/devnet/flex/articles/itemrenderers_pt1.html

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

Sidebar

Related Questions

I have created a repeat control that list some documents. I would like to
I have a page (category-list.apsx) that uses the Repeater Control method to display the
Good Afternoon, I have a page (category-list.apsx) that uses the Repeater Control method to
I have a custom control that is derived from ListView . This list view
I have a list box control that contains enough items to list them with
I have an ASP.Net Calendar control that, on DayRender, loops through a list of
I have a WPF Menu and a Tab control. I would like the list
We have an ASP.NET application that uses the Infragistics WebSchedule control to display appointments
We have a Windows Forms application that uses a (third party) ActiveX control, and
I have a HorizontalList control that uses a custom ItemRenderer to represent each item

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.