IT world observations

Just sharing my knowledge about the internet, programming, etc.

Monday, October 17, 2005

Flash cell renderer API bug

I thought, that macromedia flash v2 components are bugs-free by now. Still that’s not true. We found quite obvious one – if you use a cell renderer which changes it’s size (combo box for example) in DataGrid component, you can see that its y coordinate changes (up or down, depending on size increase / decrease) then you resize columns. It’s a bug in DataGridRow class:
Var h=__height;
cell._y = (h-cell._height)/2;


We picked such workaround – combo cells setSize function invokes setInterval function for one time, which sets cells y property back to zero.

0 Comments:

Post a Comment

<< Home