[flexcoders] Re: Constraining a grid other then with an absolute height.

2006-06-30 Thread Tim Hoff
Yeah, you might have padding and verticalGap issues. Good luck. -TH --- In flexcoders@yahoogroups.com, "Ian Skinner" <[EMAIL PROTECTED]> wrote: > > Easy enough. height="{panel1.height-control1.height- control2.height}". I have a simple sample for states, with a transition here: > > That is

RE: [flexcoders] Re: Constraining a grid other then with an absolute height.

2006-06-30 Thread Ian Skinner
Easy enough.  height="{panel1.height-control1.height-control2.height}".  I have a simple sample for states, with a transition here: That is what I tried at first, but it did not give me the results I expected. So I did not explore it further, it’s a minor nicety at this point.   Wha

[flexcoders] Re: Constraining a grid other then with an absolute height.

2006-06-30 Thread Tim Hoff
Easy enough.  height="{panel1.height-control1.height-control2.height}".  I have a simple sample for states, with a transition here: http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectID=422  It's based on Cairngorm, but maybe it will give you some ideas.  If you ceate a model

RE: [flexcoders] Re: Constraining a grid other then with an absolute height.

2006-06-30 Thread Ian Skinner
Yeah Tim, that worked. height="{panel1.height - 160}" Now the really cool trick would be have the 160 be based on the height of the two controls above the grid. But for now, this is great.   Now I am off to the biggest chalenge to date. Creating some behavious, states and maybe a

[flexcoders] Re: Constraining a grid other then with an absolute height.

2006-06-30 Thread Tim Hoff
Hi Ian, The first example was almost correct. This will work: Change "parentPanel" to the id of your panel. -TH --- In flexcoders@yahoogroups.com, "Ian Skinner" <[EMAIL PROTECTED]> wrote: > > I’m not having much luck with this. If I put it like you suggest I get an error about not allow

RE: [flexcoders] Re: Constraining a grid other then with an absolute height.

2006-06-29 Thread Ian Skinner
I’m not having much luck with this. If I put it like you suggest I get an error about not allowing strings here. "{parentPanel.measuredHeight}-50"   If I move the bracket, the error is not thrown, but my grid does not show up. "{parentPanel.measuredHeight-50}"   Ian, The code shou

[flexcoders] Re: Constraining a grid other then with an absolute height.

2006-06-29 Thread Tim Hoff
Ian, The code should have been: -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote: > > > Hi Ian, > > Still pluggin along I see. I'd be intrested to see your code when your > done. > > You could base the height of the grid on the panel container. Adjust > the he

[flexcoders] Re: Constraining a grid other then with an absolute height.

2006-06-29 Thread Tim Hoff
Hi Ian, Still pluggin along I see.  I'd be intrested to see your code when your done. You could base the height of the grid on the panel container.  Adjust the height to compensate for the other controls in the panel above the grid. 50" /> -TH  --- In flexcoders@yahoogroups.com, "Ian Ski