-
-
Notifications
You must be signed in to change notification settings - Fork 982
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: scroll methods can scroll uncontrolled parent iframe #868
- Loading branch information
1 parent
e53c329
commit a6c4fd3
Showing
4 changed files
with
85 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Iframe-Resizer Examples</title> | ||
<meta name="description" content="iFrame message passing test" /> | ||
<meta name="viewport" content="width=device-width" /> | ||
<style> | ||
a.toggle { | ||
float: right; | ||
margin-left: 8px; | ||
} | ||
#callback { | ||
margin: -5px 0 5px 24px; | ||
} | ||
|
||
iframe { | ||
width: 100%; | ||
height: 300px; | ||
/* border-width: 0; */ | ||
} | ||
|
||
</style> | ||
</head> | ||
|
||
<body> | ||
<a href="#" id="toggle" class="toggle">Toggle iFrame</a> | ||
<h2>iFrame Wrapper</h2> | ||
<p> | ||
Resize window or click one of the links in the iFrame to watch it resize. | ||
Or try with <a name="anchorParentTest" href="two.html">two iFrames</a>. | ||
</p> | ||
|
||
<div id="iframeContainer" style="margin: 20px"> | ||
<iframe | ||
src="index.html" | ||
scrolling="auto" | ||
></iframe> | ||
</div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters