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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:05:56+00:00 2026-06-15T10:05:56+00:00

How to maximize a Callout , so that it takes the maximal available space

  • 0

How to maximize a Callout, so that it takes the maximal available space at the screen?

I’m trying to display a ViewNavigator in a Callout and while it works, the displayed View is too narrow:

enter image description here

In the same program I have another Callout and it is wide enough:

enter image description here

The only 2 differences between them is that the latter is attached to a CalloutButton and the latter holds a custom Score component for which I set:

    override protected function measure():void {
        super.measure();
        measuredWidth = Capabilities.screenResolutionX;
        measuredHeight = Capabilities.screenResolutionY;
    }

I keep staring at the Callout.as code, but can’t find a way to trick it to occupy most available space yet.

My custom mxml component is quite simple:

PlayerInfo.mxml:

<?xml version="1.0" encoding="utf-8"?>
<s:Callout 
    xmlns:fx="http://ns.adobe.com/mxml/2009" 
    xmlns:s="library://ns.adobe.com/flex/spark"
    contentBackgroundAppearance="none">

    <fx:Script>
        <![CDATA[
            [Bindable]
            public var userid:String;
        ]]>
    </fx:Script>

    <s:ViewNavigator 
        firstView="views.Profile"
        firstViewData="{userid}">
        <s:navigationContent>
            <s:Button label="Close" click="close()" />
        </s:navigationContent>
    </s:ViewNavigator>

</s:Callout>        
  • 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-15T10:05:57+00:00Added an answer on June 15, 2026 at 10:05 am

    Callout extends Container, so you shouldn’t have problems setting the width and height to 100%.

    Also, in the Callout code there’s a method:

    /**
     *  @private
     *  Force a new measurement when callout should use it's screen-constrained
     *  max size.
     */
    private function invalidateMaxSize():void
    {
        // calloutMaxWidth and calloutMaxHeight don't invalidate 
        // explicitMaxWidth or explicitMaxHeight. If callout's max size changes
        // and explicit max sizes aren't set, then invalidate size here so that
        // callout's max size is applied.
        if (!canSkipMeasurement() && !isMaxSizeSet)
            skin.invalidateSize();
    }
    

    So, try to set the ‘explicitMaxWidth’ and ‘explicitMaxHeight’ properties.

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

Sidebar

Related Questions

Imagine that I'm a bakery trying to maximize the number of pies I can
I have an issue trying to maximize the performance of our listview that has
I'm trying to read through PCA and saw that the objective was to maximize
I'm just trying to maximize my editing space really never use this thing at
To speed up some unit tests that minimize and maximize windows, I want to
I'm trying to find a way to maximize & minimize a certain application using
How can I maximize a child window that fits only the client area but
I'm trying to maximize a specific window with python... Here is the deal: I
I am trying to maximize the benefits from an experience. Also I usually use
When i maximize an air window that has no chrome (no system chrome, no

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.