feat(rendering): Fixes #1488. Bind to resize event

The grid now binds to window resize events and will redraw accordingly.
Also if the grid is less than one row-height tall initially it will resize
itself to fit 10 rows by default. This is configurable with the
minRowsToShow option