If width on line 336 is for any reason 0, which happens if the directive is destroyed before it calculates width but the elements are still present (eg. when ui-router changes state), then an infinite loop occurs because no in line 340 becomes infinite and then line 408 crashes the application.
This bug only happens when cssGrid option is true.
If width on line 336 is for any reason 0, which happens if the directive is destroyed before it calculates width but the elements are still present (eg. when ui-router changes state), then an infinite loop occurs because no in line 340 becomes infinite and then line 408 crashes the application. This bug only happens when cssGrid option is true.