Andrew Spaulding wrote:

I have tried using a getPreferredHeight method that returns the owners
layoutHeight and this works fine, the colour fills the entire cell
now. But I still have some weird behaviour when there is a scoll bar
on my datagrid. If click and drag on the scroll bar and move it up and
down the list the rows in the datagrid gradually increase in height.

Do you have any idea what may be causing this?

What might be happening is that every time you scroll, the height is recalculated, and a little bit is added to it each time. To avoid that, you can cache the height the first time around:


var owner;

function getPreferredHeight() : Number

{

if (cachedOwnerLayoutHeight == undefined)
cachedOwnerLayoutHeight = owner.layoutHeight;

return cachedOwnerLayoutHeight;

}

This might lead to other problems though. I'm just guessing.

Manish




Reply via email to