downshiftorg / prophoto-issues

Public issue tracking for ProPhoto 6
8 stars 8 forks source link

Grid sizing infinite recursion error with very narrow sizing limits #692

Closed jaredh159 closed 8 years ago

jaredh159 commented 8 years ago

The module that sizes responsive grids is susceptible to an infinite loop causing a "max call stack size exceeded" javascript error. The error is caused when a user enters a very narrow range of sizing dimensions, for instance:

With so little wiggle room, the module falls into an infinite loop in it's current form. Giving a more reasonable range fixes the issue, but the error should be prevented.

2016-09-06_13-04-15