Ah - paddingTop/paddingBottom on the *datagrid*!!!! (i.e. as opposed
to on the item renderer or the text field)

Brilliant, as usual, Alex. Thank you!


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> paddingTop/paddingBottom are adding the four pixels.
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of tsiesser
> Sent: Thursday, April 19, 2007 11:58 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] DataGrid variableRowHeight problem
> 
> 
> 
> Hi all - I am using a custom item renderer with a datagrid where
> variableRowHeight is set to true. The item renderer extends from
> UIComponent and contains a single UITextField. In
> renderer.commitProperties I explicitly set the UITextField and the
> item renderer to have the same height, which is usually 20 pixels.
> 
> The height is actually rendering at 24 pixels. If I change the height
> to 18 pixels, the row renders at 22 pixels - always 4 more than what I
> set.
> 
> This only happens when variableRowHeight is true - if I turn
> variableRowHeight off, I get the correct row height.
> 
> Does anyone know why this is happening or what I can do to fix/work
> around it???
> 
> Thanks in advance!
>

Reply via email to