Set width and height to 100%. Since v7 Handsontable will adapt whenever windows is resized. If you’re changing layout any other way you have to call refreshDimensions() method manually. Or implement any technique or polyfill for Element Queries to detect when div dimensions were changed. There is currently no API in the browser to do it out of the box and implementations may vary so it’s left up to the developer.