Skip to main content Skip to footer
x

DEVcember is Here! Learn How You Can Save Up to 40% (and Maybe More!)

DEVcember is Here - Save Up to 40%!

DEVcember is Here!

How to increase Spread's height dynamically in JavaScript

Background:

You may need to be able to increase the height of your spreadsheet.

Steps to Complete:

1. You need to call the refresh() method after changing the height of the spread container to update the spread layout according to the new dimensions.

var spreadContainer = document.getElementById("ss");
// update height
spreadContainer.style.height = "700px";
// refresh spread to update layout
spread.refresh();

Tyler Barlock