-1

Line with problem.

wrapElement.style.height = windowHeight + "px";

Function:

function setWrap() 
{
    if (document.getElementById) 
    {
        var windowHeight = getWindowHeight();
        if (windowHeight > 0) 
        {
            var wrapElement = document.getElementById("container");
            wrapElement.style.height = windowHeight + "px";
        }

    }
}
Jongware
  • 21,058
  • 8
  • 43
  • 86
ranzirot
  • 1
  • 4

1 Answers1

-1

It seems like it doesn't find the element with the ID "container". Make sure you have a tag in your HTML with this ID. – Adrien Brunelat

ranzirot
  • 1
  • 4