ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Resizing after moving column, resize the wrong column

Open brainsbucket opened this issue 12 years ago • 6 comments

It seems that de renderIndex is not updated after moving a column. If you inspect the scope on a column header, the $index is ok but not the renderIndex, and the resize handler use the renderIndex

brainsbucket avatar Nov 21 '14 08:11 brainsbucket

@jpuri: is this something you have come across?

PaulL1 avatar Nov 21 '14 09:11 PaulL1

I have try with the latest version (/*! ui-grid - v3.0.0-rc.16-7fb46d6 - 2014-11-21), the issue is always here

brainsbucket avatar Nov 21 '14 09:11 brainsbucket

Please check this comment of mine of issue of column moving with column resize...I need to fix this one: https://github.com/angular-ui/ng-grid/issues/1868#issuecomment-61076923

jpuri avatar Nov 21 '14 10:11 jpuri

Ok, sorry I have not seen this issue. Thanks for your work.

brainsbucket avatar Nov 21 '14 10:11 brainsbucket

Hi @brainsbucket ,

I spent time trying to replicate and debug the issue, but what I found was that if I do lot of column moving and resizing really quick, this problem comes. But if I do it slowly its behaves fine. I fact what I noticed is if you are not able to properly resize some column wait for few seconds and then it will work.

The reason apparently is that angular is taking time to digest the change of renderIndex in scope.

Can you please again try it out and let me know your observations, you can use this plunker for reference:

http://plnkr.co/edit/gBPpfb2dM6v5givbINld?p=preview

jpuri avatar Nov 21 '14 20:11 jpuri

Closing, as this appears resolved to me, and no comments on it for over a month.

PaulL1 avatar Jan 14 '15 21:01 PaulL1