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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:05:29+00:00 2026-05-25T15:05:29+00:00

For example, I’ve created 2 horizontal lists with different heights: 50px and 100px. I’d

  • 0

For example, I’ve created 2 horizontal lists with different heights: 50px and 100px.
I’d like to use 1 item renderer to display both.

The item renderer has to create square items, so it has to produce 50×50 items for the first list and 100×100 items for the second one.

How should I set up the item renderer to get the result?

  • 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-25T15:05:29+00:00Added an answer on May 25, 2026 at 3:05 pm

    It is always the parents responsibility to size it’s children. In this case, the list is the parent and the itemRenderer is the child. The best you can do is offer suggestions in the way of measuredWidth and measuredHeight.

    So, you could override the measure method of your itemRenderer component to set the values (50×50 or 100×100) based on some criteria. But, what would that criteria be?? We don’t know because it wasn’t provided inyour question. In an ideal world, it cannot be the height or width of the List; because the itemRenderer should know nothing about the list.

    Ignoring the itemRenderer for a moment…

    In an MX List, you can use the rowHeight property.

    In a Spark List, you can set the rowHeight property on the List’s layout.

    You may be able to use a typicalItem on the List class instance.

    I think these approaches are more likely to give you the results you want than doing something in the itemRenderer.

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

Sidebar

Related Questions

Example of WordPress default CSS class output: <li id=menu-item-55 class=menu-item menu-item-type-post_type menu-item-object-page menu-item-55> <li
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
Example output from PHP: { RootName_0:{Id:1,ValId:1,Value:Colour,Text:Blue}, RootName_1:{Id:1,ValId:2,Value:Colour,Text:Red} } How can I use Backbone.js or
Example: <Item name=item1> <mode = ax, bx /> </Item> <Item name=item2> <mode = bx,
Example using Namespace in PHP... use \MyLibrary\Registry; use \MyLibrary\User; use \MyLibrary\Request; namespace MyLibrary\Base {
Example 1: http://www.example.com/image/logo.png http://www.example.com/images/logo.png Example 2: http://www.example.com/user/johndoe http://www.example.com/users/johndoe Especially if you use the Url
Example: You have a shortcut s to SomeProgram in the current directory. In cmd.exe
Example I have Person , SpecialPerson , and User . Person and SpecialPerson are
Example: select ename from emp where hiredate = todate('01/05/81','dd/mm/yy') and select ename from emp
example: a_list = [1, 2, 3] a_list.len() # doesn't work len(a_list) # works Python

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.