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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:45:02+00:00 2026-06-05T04:45:02+00:00

In latest Adobe Flex sdk 4.6, what is better from performance view? <s:Group width=100%

  • 0

In latest Adobe Flex sdk 4.6, what is better from performance view?

<s:Group width="100%" height="100%"/>

or

<s:Group left="0" right="0" top="0" bottom="0"/>

Thank you.

  • 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-05T04:45:03+00:00Added an answer on June 5, 2026 at 4:45 am

    In BasicLayout.updateDisplayList() i found this (in loop for every child element):

    if (!isNaN(percentWidth))
                {
                    var availableWidth:Number = unscaledWidth;
                    if (!isNaN(left))
                        availableWidth -= left;
                    if (!isNaN(right))
                         availableWidth -= right;
    
                    childWidth = Math.round(availableWidth * Math.min(percentWidth * 0.01, 1));
                    elementMaxWidth = Math.min(layoutElement.getMaxBoundsWidth(),
                        maxSizeToFitIn(unscaledWidth, hCenter, left, right, layoutElement.getLayoutBoundsX()));
                }
                else if (!isNaN(left) && !isNaN(right))
                {
                    childWidth = unscaledWidth - right - left;
                }
    

    And same for height.

    So, looks like:

    1. percenWidth has higher priority than top and left (if both are set)
    2. top and left calculated easier than percenWidth (single subtraction against round, functions call and conditions)
    3. top and left may be used as styles declarations.

    Also, most of Flex4 skins are based top and left – i think for performance reason too.

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

Sidebar

Related Questions

My latest project is to build a billing system with multiple profile like 100+
I downloaded the latest source of mod_wsgi from https://code.google.com/p/modwsgi/source/checkout , but I can’t compile
latest jquery 1.4.2 downloaded from jquery.com comes with Sizzle.js also. How and what benefit
The latest cabal-install that I've been using (0.13.3, from the darcs repo) is nice;
I've been making mxml itemRenderers, but from what I hear at adobe, for the
LATEST Update (Nov 2 2011 9AM) I tried running tnsping from the service and
I've got the latest Beta of Adobe Flash Builder 4. I want to use
I'm having issues with creating an AIR file from an Adobe AIR HTML/JavaScript project.
The latest I can find from the web and blogosphere indicate that Microsoft's XML
The latest oddity with this IDE is the default behaviour of right-clicking on a

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.