Skip to content

Commit

Permalink
Issue #691: history and .nocache.html iframes now have style display:…
Browse files Browse the repository at this point in the history
…none and an id (instead of width/height/border:0px)
  • Loading branch information
bittner committed Feb 23, 2012
1 parent 93700ab commit 914564c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
5 changes: 2 additions & 3 deletions builder/boilerplate/pygwt.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,8 @@ function __pygwt_injectWebModeFrame(name) {
var iframe = document.createElement("iframe");
var selectorURL = parts[0] + parts[1] + ".nocache.html";
iframe.src = selectorURL;
iframe.style.border = '0px';
iframe.style.width = '0px';
iframe.style.height = '0px';
iframe.id = selectorURL;
iframe.style.display = 'none';
if (document.body.firstChild) {
document.body.insertBefore(iframe, document.body.firstChild);
} else {
Expand Down
2 changes: 1 addition & 1 deletion doc/pyjs_site/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ <h2>Python Javascript Compiler, Desktop Widget Set and RIA Web Framework</h2>
<a href="./sidebar.html">More</a>

</noscript>
<iframe id='__pygwt_historyFrame' style='width:0;height:0;border:0'></iframe>
<iframe id="__pygwt_historyFrame" style="display:none;"></iframe>
</body>
</html>

2 changes: 1 addition & 1 deletion pyjs/src/pyjs/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</head>
<body style="background-color:white">
<script type="text/javascript" src="%(bootstrap_file)s"></script>
<iframe id="__pygwt_historyFrame" style="width:0;height:0;border:0"></iframe>
<iframe id="__pygwt_historyFrame" style="display:none;"></iframe>
</body>
</html>
"""
Expand Down
5 changes: 2 additions & 3 deletions pyjs/src/pyjs/builtin/public/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,8 @@ function __pygwt_injectWebModeFrame(name) {
var iframe = document.createElement("iframe");
var selectorURL = parts[0] + parts[1] + ".nocache.html";
iframe.src = selectorURL;
iframe.style.border = '0px';
iframe.style.width = '0px';
iframe.style.height = '0px';
iframe.id = selectorURL;
iframe.style.display = 'none';
if (document.body.firstChild) {
document.body.insertBefore(iframe, document.body.firstChild);
} else {
Expand Down
5 changes: 2 additions & 3 deletions pyjs/src/pyjs/builtin/public/bootstrap_progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,8 @@ function __pygwt_injectWebModeFrame(name) {
var iframe = document.createElement("iframe");
var selectorURL = parts[0] + parts[1] + ".nocache.html";
iframe.src = selectorURL;
iframe.style.border = '0px';
iframe.style.width = '0px';
iframe.style.height = '0px';
iframe.id = selectorURL;
iframe.style.display = 'none';
if (document.body.firstChild) {
document.body.insertBefore(iframe, document.body.firstChild);
} else {
Expand Down

0 comments on commit 914564c

Please sign in to comment.