Adding option {rebuildOnResize:true} so that the grid can be recalculated on significant resizes