Skip to content

Commit

Permalink
Post a message to the containing page for iframe resizing - needs to …
Browse files Browse the repository at this point in the history
…be handled in the page containing the iframe - code posted on dev list on July 3rd 2013 by John Smith

git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@1021 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
JohnSmith-LT committed Jul 3, 2013
1 parent c7453ea commit cccfe54
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,12 @@ function x_setUp() {
text: false
})
.click(function() {

// Post flag to containing page for iframe resizing
if (window && window.parent && window.parent.postMessage) {
window.parent.postMessage((String)(!x_fillWindow), "*");
}

if (x_fillWindow == false) {
x_setFillWindow();
} else {
Expand Down

0 comments on commit cccfe54

Please sign in to comment.