I’m trying to resize the table when the window changes, but it’s not working.
Even when specifying a number in updateSettings, the height displayed in the browser was different.
However, when retrieved using hot.getSettings().height, it was the number I had set.
The browser’s displayed height differs from the height set in updateSettings.
The issue started occurring in 16.1.1 and did not occur in 16.1.0.
function resize() {
var client_w = window.innerWidth - 30;
var client_h = window.innerHeight - 200;
hot.updateSettings({
width: client_w,
height: client_h
});
}
function resizeWindow(){
console.log(‘Resize’);
resize();
}
window.onresize = resizeWindow;