zhurandy / portal-issues-test

0 stars 0 forks source link

Internet Explorer 7+ resizing problem with iframe #164

Open zhurandy opened 10 years ago

zhurandy commented 10 years ago

In "ROOT/html/portal/layout/view/embedded_js.jspf" and "ROOT/html/portal/layout/view/embedded.jsp" i've found a compatibility error with IE 7 (and 8) when liferay resize the iframe embedded. The problem may be the "onload" event. My embedded page is a complex site that contains a lot of frame and iframe. In ROOT/html/portal/layout/view/embedded.jsp i've cut the onload attribute as below:

In "ROOT/html/portal/layout/view/embedded_js.jspf" i've add this code in script tag jQuery(document).ready(function () { resizeIframe(); } ); Now the risize works with IE7, IE8, FF3 (3.5 and 3.6) and Crome. Same problem still when portlet include an embedded page, but i haven't touch this file.