@shalu, making it 100% covers the whole canvas. I don't want that. @akshar, this did not help as the 'yourContacts' gets modified dynamically. I can go with setting the height every time 'yourContacts' is modified but that would not be the best - - any more thoughts?
On Mar 20, 3:08 am, Akshar Kaul <[email protected]> wrote: > you can try width = {yourcontacts.width} in the outer main box. > and dont give width attribute to the yourcontact. > > Akshar Kaul > > On Sat, Mar 20, 2010 at 12:07, shalu popli jain > <[email protected]>wrote: > > > > > specify the outermost VBox's height as 100% . Hope this will work for > > you..... > > > On Sat, Mar 20, 2010 at 1:43 AM, Akhil <[email protected]>wrote: > > >> My VBox looks like this > > >> <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" > >> minHeight="300" > >> borderStyle="solid" borderThickness="1" borderColor="#FF00FF" > >> xmlns:contacts="my.package.contacts.*" xmlns:code="http:// > >> code.google.com/p/flexlib/"> > >> <contacts:MyContacts id="myContacts" width="100%" height="100%"/> > >> <contacts:YourContacts id="yourContacts" width="100%" > >> height="100%"/> > >> </mx:VBox> > > >> The components YourContacts has a VBox which has a Datagrid + buttons > >> in it. > >> Now when I add rows to Datagrid I want the top most container (outer > >> VBox) to expand automatically. YourContacts is getting expanded when I > >> add rows to datagrid but the outer one is not expanding and the > >> datagrid is showing up truncated. > > >> Any ideas what is the best way to achieve this ? > > >> Thanks and Regards > > >> -- > >> You received this message because you are subscribed to the Google Groups > >> "Flex India Community" group. > >> To post to this group, send email to [email protected]. > >> To unsubscribe from this group, send email to > >> [email protected]<flex_india%2bunsubscr...@googlegroups.com> > >> . > >> For more options, visit this group at > >>http://groups.google.com/group/flex_india?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Flex India Community" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<flex_india%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/flex_india?hl=en.- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

