Skip to content

Commit

Permalink
Update iframe notes (use cases, and infinite-loops)
Browse files Browse the repository at this point in the history
  • Loading branch information
craigfrancis committed May 15, 2019
1 parent c99d4ed commit a05c121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion problems/infinite-loops.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ But we *can* cheat here, as we don't need to consider every edge case that the "

We just need to let the browser do an initial layout, then it can **lock** the height, and use scroll bars as we do today.

We *could* also add a JavaScript method the iframe content could call, asking for it's height to be updated, if the content changes.
We **could** add a JavaScript method for the iframe to call, asking for it's height to be updated, if the content changes.

Widget authors already work within these constraints - where they typically use `postMessage` and custom JavaScript in the parent to update the iframe height.

Expand Down

0 comments on commit a05c121

Please sign in to comment.