Hello, Here's a sample of the code. As you can see, I'm manually
setting the txtDesc width to be based on it's container's dynamic width.
This is so the Text will linewrap correctly and for an indeterminate #
of lines
BTW, <components.Text> is just a wrapper around the standard mxml Text
component.
<mx:VBox width="100%" verticalAlign="top" verticalGap="0">
<mx:VBox width="100%" verticalAlign="top" verticalGap="0"
backgroundImage="assets/skin/bg_header.swf" backgroundSize="100%">
<mx:HBox width="100%" verticalScrollPolicy="off">
<mx:HBox verticalAlign="middle" paddingLeft="10"
paddingTop="10">
<mx:Image source="assets/images/dm4_small.png"/>
</mx:HBox>
<mx:VBox horizontalAlign="right" width="100%"
height="100%">
<mx:HBox>
<components:LinkBar id="primaryNav"
itemClick="navBarClick(event);" d_styleName="headerLinkBar"
d_dataProvider="{model.appConfig.primaryNavigation}"/>
</mx:HBox>
<mx:VBox height="100%" verticalAlign="bottom"
horizontalAlign="right">
<components:Label
d_text="{model.currentUser.firstName == null ? '':'Welcome,
'+model.currentUser.firstName}" d_styleName="footerCopy"/>
</mx:VBox>
</mx:VBox>
</mx:HBox>
</mx:VBox>
<mx:HBox width="100%" height="50" horizontalGap="0"
verticalAlign="top" verticalGap="0">
<mx:HBox width="200" horizontalAlign="center"
verticalAlign="middle" height="100%">
<components:Text
d_text="{model.currentScreenTitle}"/>
</mx:HBox>
<mx:VRule width="1" height="100%"
strokeColor="#6E001C"/>
<mx:Spacer width="10"/>
<mx:HBox id="textDescriptionHolder"
verticalAlign="top" width="100%">
<components:Text id="txtDesc"
d_text="{model.currentScreenDesc}" left="0"
width="{textDescriptionHolder.width-5}" d_height="100%"/>
</mx:HBox>
</mx:HBox>
<mx:HRule width="100%" height="1" strokeColor="#6E001C"/>
<mx:Spacer height="10"/>
</mx:VBox>
--- In [email protected], "Rick Winscot" <[EMAIL PROTECTED]>
wrote:
>
> Sounds to me like you may be over-using the invalidateDisplayList()
???
> Without seeing some code it is difficult to tell exactly what
might be the
> problem. Post something and we can take a look see.
>
>
>
> Rick Winscot
>
>
>
>
>
> From: [email protected] [mailto:[EMAIL PROTECTED]
On
> Behalf Of Todd
> Sent: Wednesday, April 02, 2008 10:20 AM
> To: [email protected]
> Subject: Re: RES: [flexcoders] Resize very slow
>
>
>
> Hey All, I have a very similar question to this one, so I thought I'd
> continue this thread.
>
> I also have a slow redraw, because of one of my properties id
> dynamically bound to calculate the width based on another property.
> When making the screen larger, it does one redraw, however, when
> making it smaller, it does it's loop of calling resize everytime the
> control property changes. I'm trying to figure out if there's a way
> to supress the resize events until the parent has finished drawing, or
> something similar.
>
> I have to set the width because the component I'm resizing is a
> TextArea and I'm trying to force it to take up as many lines as it
> needs to render the length of text, which is all variable.
>
> Thanks for any suggestions.
>
> --- In [email protected]
<mailto:flexcoders%40yahoogroups.com> ,
> "Luciano Manerich Junior"
> luciano.manerich@ wrote:
> >
> > Hi,
> >
> > cant you use bottom="0"?
> >
> > <mx:Image id="myImage" bottom="0" />
> >
> > You will not have to do that Math thing... But i dont believe that
> will really speed up...
> >
> > ________________________________
> >
> > De: [email protected] <mailto:flexcoders%40yahoogroups.com>
> [mailto:[email protected]
<mailto:flexcoders%40yahoogroups.com> ]
> Em nome de shivkxr
> > Enviada em: quinta-feira, 27 de março de 2008 16:30
> > Para: [email protected]
<mailto:flexcoders%40yahoogroups.com>
> > Assunto: [flexcoders] Resize very slow
> >
> >
> >
> > I have a canvas and a few controls within the canvas. On of these is
an
> > image.
> >
> > Essentially, what I want is that the image appear towards the bottom
of
> > the canvas, so what I do is this
> >
> > <mx:Image id="myImage" top="{containerCanvas.height -
> > myImage.height}" />
> >
> > This works, except that when the canvas is sized to a different size
it
> > looks like I have a slow motion effect in place. It takes quite a
few
> > seconds (3-10) depending on the difference between the old and new
> > height of the canvas.
> >
> > So is there a way to speed this up?
> >
>