Skip to content
This repository has been archived by the owner on Mar 23, 2019. It is now read-only.
This repository has been archived by the owner on Mar 23, 2019. It is now read-only.

iFrame show in wrong position if swf load inside multiple <div> #117

Open
kelvinlee34 opened this issue Nov 16, 2011 · 1 comment
Open

Comments

@kelvinlee34
Copy link

Our application need to load the swf inside multiple div tag and each div tag 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?

@nicoulaj
Copy link
Member

In which browser is it tested ? Did you test it does not break any of the examples ?

The proper way to get code included in the project is to fork and send a pull request, see the Developers guide.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants