angular-ui/ng-grid — pull request #1756 by Robinson7D (2014-10-07 22:00:57+00:00)
Title: Fix width calculation problems when maxWidth and minWidth are used

There are errors when using `minWidth` to determine the width of columns. Some columns are skipped and given a `drawnWidth` of undefined due to splicing elements from the array while iterating over it. Iterating backwards is the simplest fix for this (as far as I could tell).

Plunker showing the problem (minimally changed from tutorial 190): http://plnkr.co/edit/tSnDqn0gmBvoCJUpQnaX?p=preview

Plunker showing the fix: http://plnkr.co/edit/wZKuN2fFd30hVMhp0NeS?p=preview