How are you adding the ifames from vtinfo?
Thread Starter
astima
(@astima)
Our parent company provided us with script to enter into our header (which took me a while to figure out how to do). Could one of the scripts be what is causing it to be 150 pixels.
It certainly could be. Talk to the developer(s) of that script.
Thread Starter
astima
(@astima)
Below is the only code I saw that refers to height in the script. I don’t fully understand it.
currentViewportWidth = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
currentViewportHeight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
document.getElementById('brand-builder-iframe').contentWindow.postMessage({
width: currentViewportWidth,
height: currentViewportHeight
}, '*');
just for fun, try changing it to “height: 100%”.
Thread Starter
astima
(@astima)
Where exactly should I change the height?
Thread Starter
astima
(@astima)
So I would change the code to this:
currentViewportWidth = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
currentViewportHeight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
document.getElementById('brand-builder-iframe').contentWindow.postMessage({
width: currentViewportWidth,
height: 100%
},
Yeah, try it and see what happens. If it breaks stuff put it back to what it was and talk to the developers of the script.
Thread Starter
astima
(@astima)
Unfortunately, it did not work. But I appreciate all your help