Well, in case anyone else has this issue, I found a bit of a hack to get it to work. I just created an mxml class called CustomModule.mxml and this is all that's in it:
<?xml version="1.0" encoding="utf-8"?>
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%"> </mx:Module>
Now, whenever I make a new module, I just point it to the CustomModule class as the main class to use, and everything resizes/positions fine. I'm not sure why, but I'll take it. Just to make sure, I changed one of my modules to point to mx:Module again, and the children didn't resize/position correctly. Setting it back to CustomModule made it all work again. Hopefully this can help someone. Mark On 3/27/07, Mark Doberenz <[EMAIL PROTECTED]> wrote:
I'm having issues with modules and I'm hoping someone can help me. Create a module project and layout the module using the following code: > <?xml version="1.0" encoding="utf-8"?> > <mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" > width="100%" height="100%"> > <mx:Label text="Tree Module" x="10" y="10"/> > <mx:Button x="10" y="36" label="Button 1"/> > <mx:Button x="82" y="36" label="Button 2"/> > <mx:Tree x="0" y="66" width="100%" height="100%"/> > </mx:Module> Compile it and then create another project that is an application that only has a ModuleLoader that points the the above module like the following: > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" > layout="absolute"> > <mx:ModuleLoader width="100%" height="100%"> > <mx:url> file:///PATH_TO_ABOVE_MODULE.swf</mx:url> > </mx:ModuleLoader> > </mx:Application> > The module in Flex Builder will appear correctly where the tree controller is placed at 0,66 and spans 100% x 100%. However, when the module is loaded into the Application, everything is placed correctly, but the tree seems to use a minimumWidth and minimumHeight value instead of the 100% x 100%. Has anyone seen this issue before? Mark