Skip to content

Commit

Permalink
SAK-45044 - Resize iframe after CKE drops it (sakaiproject#9271)
Browse files Browse the repository at this point in the history
  • Loading branch information
csev authored Jun 1, 2021
1 parent 53d1470 commit 57a8e5b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions basiclti/basiclti-tool/src/webapp/vm/lti_content_redirect.vm
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ parent.location = "$returnUrl";
</script>
#else
#if ( $forwardUrl )
<script type="text/javascript"><!--
location = "$forwardUrl";
// -->
<script type="text/javascript">
// The CKEDITOR has a bit of code that collapses our enclosing frame down in Chrome SAK-45044 - so we put it back up right before we redirect
try { window.frameElement.style.height= '450px'; } catch(e) { };
setTimeout(function(){ location.href="$forwardUrl"} , 500);
setMainFrameHeight = function () { console.log('setMainFrameHeight suppressed'); };
</script>
#else
<h4>$tlang.getString("operation.complete")</h4>
Expand Down

0 comments on commit 57a8e5b

Please sign in to comment.