Im running a standalone html site that has this weird tag i mistook for div
when i call wrapper it appears
However when i tried replicating the same in my rails app the console errors out
here is my js code
2
I think setWindowHeight ran before wrapper element rendered. So, you can try this way with setTimeout
setTimeout
setTimeout(setWindowHeight, 3000);
Can you share more code or maybe github repository? First, you need to see where wrapper is been declared before this wrapper.clientHeight
Click here to cancel reply.
2
Answers
I think setWindowHeight ran before wrapper element rendered. So, you can try this way with
setTimeout
Can you share more code or maybe github repository? First, you need to see where wrapper is been declared before this wrapper.clientHeight