mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Now the resize script supports both resources with and
without navigation menu.
This commit is contained in:
parent
375da10d09
commit
0e8d48e9d5
1 changed files with 7 additions and 2 deletions
|
@ -73,7 +73,12 @@ function resizeiframe (hasNav) {
|
|||
var iframeWidth = '99%';
|
||||
}
|
||||
|
||||
document.getElementById('ims-contentframe').style.height = (winHeight - totalHeight)+'px';
|
||||
if (hasNav == true) {
|
||||
document.getElementById('ims-contentframe').style.height = (winHeight - totalHeight)+'px';
|
||||
document.getElementById('ims-contentframe').style.width = iframeWidth;
|
||||
} else {
|
||||
document.getElementById('ims-contentframe-no-nav').style.height = (winHeight - totalHeight)+'px';
|
||||
document.getElementById('ims-contentframe-no-nav').style.width = iframeWidth;
|
||||
}
|
||||
document.getElementById('ims-containerdiv').style.height = (winHeight - totalHeight)+'px';
|
||||
document.getElementById('ims-contentframe').style.width = iframeWidth;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue