Added note of function to make element fill rest of screen

This commit is contained in:
2020-11-20 15:59:30 -05:00
parent 43000febb9
commit 5055af0c7e

View File

@@ -27,6 +27,14 @@
resizeString += "Inner Dimentions: " + window.innerWidth + "x" + window.innerHeight + "<br>";
resizeString += "Outer Dimentions: " + window.outerWidth + "x" + window.outerHeight;
document.getElementById("testID").innerHTML = resizeString;
//To reisize an element to take up the rest of the screen use this
/*
let mainContent = document.getElementById("mainContent");
let footer = document.getElementById("mainFooter");
let height = window.innerHeight - mainContent.offsetTop - footer.offsetHeight;
mainContent.style = "height: " + height + "px";
*/
}
//This function demonstrates a method to change the number of digits a number displays when printed