Last change
on this file since 1 was
1,
checked in by myroslav, 18 years ago
|
Building directory structure
|
File size:
936 bytes
|
Line | |
---|
1 | function adjustIFrameSize (iframeWindow) { |
---|
2 | if (iframeWindow.document.height) { |
---|
3 | var iframeElement = document.getElementById(iframeWindow.name); |
---|
4 | iframeElement.style.height = iframeWindow.document.height + 20 +'px'; |
---|
5 | // iframeElement.style.width = iframeWindow.document.width + 20 + 'px'; |
---|
6 | } else if (document.all) { |
---|
7 | var iframeElement = document.all[iframeWindow.name]; |
---|
8 | if (iframeWindow.document.compatMode && iframeWindow.document.compatMode != 'BackCompat') { |
---|
9 | iframeElement.style.height = iframeWindow.document.documentElement.scrollHeight + 20 + 'px'; |
---|
10 | // iframeElement.style.width = iframeWindow.document.documentElement.scrollWidth + 20 + 'px'; |
---|
11 | } else { |
---|
12 | iframeElement.style.height = iframeWindow.document.body.scrollHeight + 20 + 'px'; |
---|
13 | // iframeElement.style.width = iframeWindow.document.body.scrollWidth + 20 + 'px'; |
---|
14 | } |
---|
15 | } |
---|
16 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.