skip to Main Content

Im running a standalone html site that has this weird tag i mistook for div enter image description here

when i call wrapper it appearsenter image description here

However when i tried replicating the same in my rails app the console errors out

enter image description here

here is my js code enter image description here

2

Answers


  1. I think setWindowHeight ran before wrapper element rendered. So, you can try this way with setTimeout

    setTimeout(setWindowHeight, 3000);
    
    Login or Signup to reply.
  2. Can you share more code or maybe github repository? First, you need to see where wrapper is been declared before this wrapper.clientHeight

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search