I have an iframe element that, when I click on a picture, it will open below it.
My problem is that, when I open the popup (iframe) and resize the page, the iframe is not keeping the position below the picture.
iframeLoginControl.style.position = 'absolute';
iframeLoginControl.style.left = parseInt(imgBtnPos.left) - 12 + "px";
iframeLoginControl.style.top = parseInt(imgBtnPos.top) + parseInt(imgButtonObj.height) - 1 + "px";
I think my problem is with imgBtnPos.left
that not gets refreshed when I resize the page.