I would try: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo"> <mx:ModuleLoader width=”100%” height=”100%” url="Book.swf"/> </s:Application>
And if that doesn’t work, add: <?xml version="1.0" encoding="utf-8"?> <mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo" percentWidth=”100” percentHeight=”100”> <mx:DataGrid left="0" right="0" top="! 0" bottom="0"> <mx:columns> <mx:DataGridColumn headerText="Column 1"/> <mx:DataGridColumn headerText="Column 2"/> <mx:DataGridColumn headerText="Colum n 3"/> </mx:columns> </mx:DataGrid> </mx:Module> On 3/22/10 9:44 AM, "jsutjahjo" <[email protected]> wrote: Hi, I have a question about module. The following code has 1 main application, and 1 module. The module contains a data grid. How do I make the data grid fill up the available space? I tried to set left/right/top/bottom properties to zero, but no success. Thank you - Jan. Main Application: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo"> <mx:ModuleLoader url="Book.swf"/> </s:Application> Module (Book.mxml): <?xml version="1.0" encoding="utf-8"?> <mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo"> <mx:DataGrid left="0" right="0" top="! 0" bottom="0"> <mx:columns> <mx:DataGridColumn headerText="Column 1"/> <mx:DataGridColumn headerText="Column 2"/> <mx:DataGridColumn headerText="Colum n 3"/> </mx:columns> </mx:DataGrid> </mx:Module> -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui

