Grid does not resize properly when going smaller: Setting overflow hidden on the container element will correct this
If you get el.style[camel]= NaNpx or -2px or something related, be certain you have given your container element dimensions.
The grid adapts to your container's size, if your container has no size defined then the results are unpredictable.
Do not render the grid into an element with display:none.