and all the Google examples of Module and ModuleLoader I have found
show scrollbars and not "shrink to fit". The chart is in a VBox:

<mx:VBox width="100%" height="100%">    
   <mx:LineChart id="chart"
   dataProvider="{salesArizona}"
   height="100%" width="100%"

and without the Module wrapper shrinks to fit its VBox. What is it
about Module that inhibits this default behaviour, and how does one
get the chart to shrink to the VBox - scrollbars look bad :-(

TIA,

Mic.


--- In flexcoders@yahoogroups.com, "Mic" <[EMAIL PROTECTED]> wrote:
>
> I have a canvas with 4 panels inside it. Each panel takes up a quarter
> of the canvas. When I populate the panels with modules that are
> charts, the modules are not constrained within the outer containers -
> the panels, but each chart module fills almost the whole canvas. How
> do I get the modules to stay within their parent containers? TIA,
> 
> Mic.
> 
> <mx:Canvas id="canvas1">
>    <mx:Panel label="Test1" width="50%" height="50%" left="0" top="0">
>       <mx:ModuleLoader url="{cht1Strng}"/>                       
>    </mx:Panel>
>    <mx:Panel label="Test2" width="50%" height="50%" right="0" y="0">
>       <mx:ModuleLoader url="{chart2String}"/>                 
>    </mx:Panel>
>    <mx:Panel label="Test3" width="50%" height="50%" bottom="0">
>       <mx:ModuleLoader url="{chart3String}"/>                 
>    </mx:Panel>
>    <mx:Panel label="Test4" width="50%" height="50%" bottom="0"
>       right="0">
>       <mx:ModuleLoader url="{chart4String}"/>
>    </mx:Panel>
> </mx:Canvas>
>


Reply via email to