Instead of setting height and width of a component to 0, try setting visible property to false and includeInLayout property to false.
--- In [email protected], "Mic" <chigwel...@...> wrote: > > In an application where 8 panels exist on the screen with each panel > containing a chart or an advanced datagrid (corporate dashboard), any portlet > can be zoomed to fill the whole screen, and I was doing this by setting > height and width of the other 5 to 0. Trying to debug the error I was > getting, I discovered that if you make an AdvancedDataGrid less than about 40 > (cannot remember exact cutoff) Flex gives an error of: > > TypeError: Error #1009: Cannot access a property or method of a null object > reference. > at > mx.controls::AdvancedDataGridBaseEx/drawColumnBackground()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:3503] > etc. > > It looks like it is too small to draw - Alice would tell it that it took the > wrong pill :-) > > Is there a way around this? TIA, > > Mic >

