PDA

View Full Version : [CLOSED]lockingGridview ex rowheight changed on unlocked columns doesn't alter locked



Tim Toady
10 Jan 2011, 6:55 AM
Ext version tested:


Ext 3.3.0



Adapter used:


ext



css used:


only default ext-all.css



While fiddling with the locking gridview, I noticed that an image I was putting in the unlocked portion of the grid (via a renderer) was adjusting that rows height slightly. This height change did not happen on the locked portion of the grid. What resulted is every time that image is in a row that row offsets the rows under it and its locked portion remains the original height. The more rows with that image, the more noticeable the effect.

Condor
10 Jan 2011, 8:25 AM
LockingGridView has a syncHeights config option, which you need to set to true.

It's set to false by default, because it increases rendering time.

Only use syncHeights:true when the row height is dynamic. If all rows are the same height, then using a css rule to specify the height will be faster.

Tim Toady
10 Jan 2011, 11:27 AM
oh sorry. I thought for sure it was a bug based on the behavior. I didn't realize it was a performance trade-off. I didn't look into the code because I just fixed my grid by setting the row height.