Yep tried that to.

        <mx:VBox 
                id="vBxContent"
                width="100%" 
                height="100%" 
                maxHeight="{this.height}"
                backgroundColor="#666666" 
                verticalAlign="middle"
                horizontalAlign="center">
has no effect.

<mx:VBox 
                id="vBxContent"
                width="100%" 
                height="100%" 
                maxHeight="100%"
                backgroundColor="#666666" 
                verticalAlign="middle"
                horizontalAlign="center">

does not even work because you can set maxHeight only to a number and not to
a percent value.

I would set it to a number, 
but I don't have the number, because I want the vBxContent to be dynamic
within its parent...






> -----Ursprüngliche Nachricht-----
> Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
> Auftrag von Philippe Maegerman
> Gesendet: Donnerstag, 22. September 2005 16:02
> An: flexcoders@yahoogroups.com
> Betreff: RE: [flexcoders] Re: container - child : height=100% - layout
> problem
> 
> have you tried 'maxHeight' and 'maxWidth' ?
> 
> Philippe Maegerman
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Christoph Diefenthal
> Sent: jeudi 22 septembre 2005 15:52
> To: 'flexcoders@yahoogroups.com'
> Subject: AW: [flexcoders] Re: container - child : height=100% - layout
> problem
> 
> 
> Thanks these are good idea, but actually I want something different.
> I should have been more specific.
> 
> I want the child to be scrollable within vBxContent, without setting
> vBXxContent.height to a fixed size as you can see in my following little
> ASCII screenshot :)
> 
> --------------------
> |  ______________   |
> | |   _____    |^|  |
> | |  |     |   | |  |
> | |  |     |   | |  |
> | |  |     |   | |  |
> | |__|_____|___|v|  |
> |                   |
> --------------------
> 
> The problem is, that vBxContent does not implicitly goes to scrollmode.
> 
> I tried the following, what sets the size of vBxContent to the
> Applications.height:
> <mx:VBox
>       id="vBxContent"
>       width="100%"
>       height="{this.height}"
> 
> 
> That works, but only as long as there is no other component before or
> after
> vBxContent (like canAnotherComponent in the example)...
> Then I would  have to do something like
>       height="{this.height- canAnotherComponent.height }"
> That's not useful if I don't know how many components are following....
> 
> 
> 
> Is there no easy way not to allow a component not to grow bigger than its
> parent??
> 
> Cheers,
> Christoph
> 
> 
> 
> 
> 
> 
> 
> > -----Ursprüngliche Nachricht-----
> > Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
> > Auftrag von bhaq1972
> > Gesendet: Donnerstag, 22. September 2005 13:24
> > An: flexcoders@yahoogroups.com
> > Betreff: [flexcoders] Re: container - child : height=100% - layout
> problem
> >
> > just some ideas
> > 1) look at scaleY property for your child canvas.
> > 2) a general approach might be ovveride vBxContent layoutChildren()
> > method something like this (untested)
> >
> > function layoutChildren()
> > {
> >   super.layoutChildren();
> >  //loop all children and and chge width if neccessary
> >  for(var i=0;i<numChildren;i++)
> >  {
> >   var obj1 = getChildAt(i);
> >   if( obj1.layoutHeight > this.layoutHeight)
> >   {
> >      obj1.layoutHeight = this.layoutHeight;
> >     // i'm sure theres more to do like scaling - but its a start
> >   }
> >  }
> > }
> >
> > --- In flexcoders@yahoogroups.com, Christoph Diefenthal
> > <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi @all,
> > >
> > > I have got a problem with my layout...
> > >
> > > I want my Application to fit into the browser window.
> > >
> > > A VBox (vBxContent) should fit into this Application and be as
> > high as
> > > possible, wherefore I set its height to 100%.
> > >
> > > But if a child (canContent) within vBxContent is higher then the
> > screen it
> > > pushes the vBxContent.height to canContent's height.
> > >
> > >
> > > How can I assure, that the vBxContent height will not get bigger?
> > >
> > >
> > >
> > >
> > > <mx:Application
> > >       xmlns:mx="http://www.macromedia.com/2003/mxml";
> > >       width="100%"
> > >       height="100%"
> > >       backgroundColor="#AAAAAA" >
> > >
> > >       <mx:VBox
> > >             id="vBxContent"
> > >             width="100%"
> > >             height="100%"
> > >             backgroundColor="#666666"
> > >             verticalAlign="middle"
> > >             horizontalAlign="center">
> > >
> > >             <mx:Canvas
> > >                   id="canContent"
> > >                   backgroundColor="#ffffff"
> > >                   width="200"
> > >                   height="1188"      />
> > >
> > >
> > >       </mx:VBox>
> > >       <mx:Canvas
> > >                   id="canAnotherComponent"
> > >                   backgroundColor="#ffffff"
> > >                   width="100"
> > >                   height="100"      />
> > >
> > > </mx:Application>
> >
> >
> >
> >
> >
> >
> > --
> > 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
> >
> >
> >
> >
> >
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> 
> 
> 
> 
> SPONSORED LINKS
> Web site design development
> <http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+si
> te+design+development&w2=Computer+software+development&w3=Software+design+
> and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c
> =5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ>         Computer software
development
> <http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=Web+
> site+design+development&w2=Computer+software+development&w3=Software+desig
> n+and+development&w4=Macromedia+flex&w5=Software+development+best+practice
> &c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw>       Software design and
development
> <http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=We
> b+site+design+development&w2=Computer+software+development&w3=Software+des
> ign+and+development&w4=Macromedia+flex&w5=Software+development+best+practi
> ce&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>
> Macromedia flex
> <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+de
> velopment&w2=Computer+software+development&w3=Software+design+and+developm
> ent&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.si
> g=OO6nPIrz7_EpZI36cYzBjw>     Software development best practice
> <http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&w1
> =Web+site+design+development&w2=Computer+software+development&w3=Software+
> design+and+development&w4=Macromedia+flex&w5=Software+development+best+pra
> ctice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw>
> 
> ________________________________
> 
> YAHOO! GROUPS LINKS
> 
> 
> 
> *      Visit your group "flexcoders
> <http://groups.yahoo.com/group/flexcoders> " on the web.
> 
> *      To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED] <mailto:flexcoders-
> [EMAIL PROTECTED]>
> 
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
> <http://docs.yahoo.com/info/terms/> .
> 
> 
> ________________________________
> 
> ------------------------------------------------------------------
> **STATEMENT OF CONFIDENTIALITY**
> 
> This e-mail and any attached files are confidential and intended solely
> for the use of the individual to whom it is addressed. If you have
> received this email in error please send it back to the person that sent
> it to you. Any views or opinions presented are solely those of author and
> do not necessarily represent those the Emakina Company. Unauthorized
> publication, use, dissemination, forwarding, printing or copying of this
> email and its associated attachments is strictly prohibited.
> 
> We also inform you that we have checked that this message does not contain
> any virus but we decline any responsability in case of any damage caused
> by an a non detected virus.
> ------------------------------------------------------------------



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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