--- In [email protected], "mitek17" <mite...@...> wrote:
>
> 
> Default IR is good until you have a text longer than a datagrid.height, it 
> won't show the scrollbars. It is easy to replicate - just supply 1000 lines 
> of text per row and you won't see the bottom. And the worst part of it - user 
> will never know that there is some hidden below the bottom line. 
> 
> If you use TextArea as IR, it will show the scrollbars, but the whole 
> datagrid is getting nuts while rendering. It means that it will render the 
> rows way after the datagrid on first create. If you update datagrid, it will 
> place IRs correctly.  
> I tried to fix it by overriding, but the standard IR is using mx_internal in 
> many places.
> 
> If you'll have a chance to look at it as well it would be great. Thanks!

If I had to guess, I would say that the problem is that DataGrid sets 
explicitHeight on its itemRenderers rather than height.  If you override 
explicitHeight to also set height and/or call invalidateSize(), you might find 
that the problem is resolved.  You may also need to call invaldateDisplayList().

HTH;

Amy

Reply via email to