On some browsers (Chrome) the calculated width of DOM elements can be off by
a pixel or two when the browser is zoomed far out. Likely due to a floating
point error in the pixel scaling. This manifests as a broken add column button:
we set the width to be exactly wide enough to accommodate the columns we want,
but when gridster checks the container width it finds it to be a pixel too
small. Add a few pixels buffer to the max-width we set on the gridster
container to workaround this.
- On setting the number of columns for a single pane, trigger processResize
to ensure that the displayed width of the pane does not exceed the number
of alotted columns nor the space available
- On add or remove column, adjust multi-column panes so that they fit within
the alotted columns and in the space available
- On resize window, adjust multi-column panes so that they fit within the
alotted columns (in addition to fitting within the space available)