I know in 1.5 the trick was to provide the loaded (inner) app with
getPreferredHeight() and getPreferredWidth() functions; may be worth a
try in your case if you are able to modify the code for the loaded
apps.  In AS2, it was:

function getPreferredHeight() {
    return _parent? _parent.layoutHeight : super.getPreferredHeight();
}

function getPreferredWidth() {
    return _parent? _parent.layoutWidth : super.getPreferredWidth();
}

--- In [email protected], "inawire" <[EMAIL PROTECTED]> wrote:
>
> With further testing, the loaded (inner) app (application.width) is 
> scailing to the correct size on initial load. When the outer shell 
> resizes, the inner app resize does not get called (it does when it 
> runs on its own).
> 
> Also when the inner app first loads, thought the inner app is showing 
> the correct width available, the inner content does not scale to 
> fit available size of the inner app.
> 
> Does anyone have any ideas?
> 
> Ross
> 
> 
> 
> 
> --- In [email protected], "Bruno Martins" <bheman@> wrote:
> >
> > I had the same problem, but I don't fix yet.
> > 
> > On 3/21/06, inawire <ross@> wrote:
> > >
> > > Hi
> > >
> > > I just converted my app to Beta 2. Ran the conversion scripts, 
> switch
> > > layout constraintes, changed LinkBar click to itemClick (that got
> > > me),worked through some new warnings that were not present before.
> > > Everything works fine now ... but (always a but)
> > >
> > > I'm loading other Flex apps into a shell Flex app. I had the 
> loaded
> > > apps expanding to fill 100% of the available space. The shell app 
> has
> > > a top control panel, a bottom status bar and the rest is left to 
> the
> > > following code (below) to fill out the middle. In Beta 1, the apps
> > > would load into the shell and expand to fit the available
> > > width/height. Now when I load the apps they come in as 500x375. 
> The
> > > apps on their own fill the browser window. Also, if I set the 
> apps to
> > > be say 600 wide, they will come in 600 wide (loader will expand to
> > > fit).
> > >
> > > Something has changed, does anyone have any ideas?
> > > Is this related to the issue:
> > > "Resize effect problems The Resize effect doesn't work with layout
> > > constraints." (from known issues)
> > > If so is there a workaround?
> > >
> > > Thanks
> > >
> > > Ross
> > >
> > > -----------------------------------------
> > > Code from shell app that loads sub apps.
> > > ...
> > > <mx:HBox width="100%" height="100%" borderStyle="solid"
> > > cornerRadius="5" styleName="colorPanel" dropShadowEnabled="true"
> > > horizontalGap="0">
> > >   <mx:VBox width="100%" height="100%">
> > >     <mx:Loader
> > >         height="100%"
> > >         width="100%"
> > >         id="applet"
> > >         minHeight="400"
> > >         minWidth="354"
> > >         source="{app}"
> > >         scaleContent="true"
> > >         complete="doneLoading()"
> > >         showBusyCursor="true"
> > >         />
> > >   </mx:VBox>
> > > </mx:HBox>
> > > ...
> > >
> > >
> > >
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to