Prototype clonePosition Bug Workaround
Posted by SibProgrammer on February 14, 2010|
Comments
CommentsIn some cases Prototype’s clonePosition method of element doesn’t work correctly in IE7. I use the latest version of Prototype framework 1.6.1 and found the following ticket It was reported one year and a half ago and still wasn’t fixed. There is a patch by Nick Stakenburg and probably it’s possible to apply monkey patch (or real patch) to Prototype to solve the problem.
The other way to get problem fixed is to use the following workaround:
try {
element.clonePosition(source, options);
} catch (e) {
element.clonePosition(source, options);
}