flex-users/flex-iframe — Issue #117: iFrame show in wrong position if swf load inside multiple <div>
Author: kelvinlee34
Created: 2011-11-16 11:45:14+00:00
State: open

Our application need to load the swf inside multiple

and each

have some padding style. We found that the javascript function to move the iFrame will get a wrong position. And we do the following change to resolve the problem.

IFrameExternalCalls.INSERT_FUNCTION_MOVEIFRAME
"var swfObjectBound = swfObject.getBoundingClientRect();" +
"frameRef.style.left = x + swfObjectBound .left + document.documentElement.scrollLeft +'px'; " +
"frameRef.style.top = y + swfObjectBound .top + document.documentElement.scrollTop +'px'; " +

IFrameExternalCalls.INSERT_FUNCTION_CREATEIFRAME
"newDiv.style.zIndex = 1;" +

Is that possible to include these change in the official release so that we don't need to modify your source code and use the library directly?