backout the work-around. No good.
This commit is contained in:
parent
632e26f9fb
commit
4d0f140384
@ -139,24 +139,13 @@
|
|||||||
function loadContent(pageUrl) {
|
function loadContent(pageUrl) {
|
||||||
var iframe = document.createElement('iframe');
|
var iframe = document.createElement('iframe');
|
||||||
iframe.src = pageUrl;
|
iframe.src = pageUrl;
|
||||||
iframe.style.width = '100%';
|
iframe.style.width = '100%'; // make the iframe take full width of the container
|
||||||
iframe.style.border = 'none';
|
iframe.style.border = 'none'; // hide the border
|
||||||
iframe.onload = function() {
|
iframe.style.overflow = 'hidden'; // hide scrollbars, can be 'auto' if you prefer automatic scrollbars
|
||||||
iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px';
|
iframe.style.height = '1800px'; // set a height so that the iframe is visible, adjust as per your needs
|
||||||
};
|
|
||||||
document.getElementById("toolPanel").innerHTML = '';
|
document.getElementById("toolPanel").innerHTML = '';
|
||||||
document.getElementById("toolPanel").appendChild(iframe);
|
document.getElementById("toolPanel").appendChild(iframe);
|
||||||
}
|
}
|
||||||
// function loadContent(pageUrl) {
|
|
||||||
// var iframe = document.createElement('iframe');
|
|
||||||
// iframe.src = pageUrl;
|
|
||||||
// iframe.style.width = '100%'; // make the iframe take full width of the container
|
|
||||||
// iframe.style.border = 'none'; // hide the border
|
|
||||||
// iframe.style.overflow = 'hidden'; // hide scrollbars, can be 'auto' if you prefer automatic scrollbars
|
|
||||||
// iframe.style.height = '800px'; // set a height so that the iframe is visible, adjust as per your needs
|
|
||||||
// document.getElementById("toolPanel").innerHTML = '';
|
|
||||||
// document.getElementById("toolPanel").appendChild(iframe);
|
|
||||||
// }
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue
Block a user