[KULRICE-7225] Fix iframe resize problem in chrome Created: 02/May/12  Updated: 03/Apr/13  Resolved: 07/May/12

Status: Closed
Project: Kuali Rice Development
Component/s: Development
Affects Version/s: None
Fix Version/s: 2.2.0-m1, 2.2
Security Level: Public (Public: Anyone can view)

Type: Bug Fix Priority: Critical
Reporter: Jerry Neal (Inactive) Assignee: Martin Taylor (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
cloned from KULRICE-7208 Template Closed
Similar issues:
KULRICE-5988Iframe resize issue in Chrome
KULRICE-4091Fix portlet iframe resizing problem
KULRICE-9829Chrome back problems iframes (mainly in lightboxes)
KULRICE-5989Cross domain iFrame resize transition fix
KULRICE-9830IE back problems (iframes in lightboxes)
KULRICE-8333Fix the iframe resizing script so we do not see double scroll bars and at the same time the KRMS screens are not affected.
KULRICE-8983Resizing testing
KULRICE-5688Fix the iframe title ("edoc")
KULRICE-8297IdentityRoleBlanketAppLegacyIT.testBlanketApprove iframe problem
KULRICE-7833After iFrame removal support - do not allow KRAD content to be in an iframe
Rice Module:
KRAD
KAI Review Status: Not Required
KTI Review Status: Not Required

 Description   

Iframe resize script is causing the frame to shrink until the page is loaded (chrome only). There are numerous other issues but this is the biggest problem right now.

The resize logic can be found in web\src\main\webapp\WEB-INF\tags\rice-portal\iframePortletContainer.tag



 Comments   
Comment by Martin Taylor (Inactive) [ 07/May/12 ]

modified resizeIframe - increased the new height by 16:
var newHeight = thisIframe.contents().find("body").outerHeight();
to:
var newHeight = thisIframe.contents().find("body").outerHeight() + 16;

This corrected the issue on my view but I don't know the base cause yet.

Comment by Martin Taylor (Inactive) [ 07/May/12 ]

Caused by the diff between frame and the outerHeight when its margin attribute is set to false (-16). set to true, corrected in chrome. Tested in chrome and FF 10, committed to the 2.2 branch.

Comment by Martin Taylor (Inactive) [ 07/May/12 ]

Issue caused by diff between frame and jquery outerheight. corrected by turning on the margin attribute on the outerheight.

Generated at Mon Mar 30 14:41:53 CDT 2020 using JIRA 6.1.5#6160-sha1:a61a0fc278117a0da0ec9b89167b8f29b6afdab2.