mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Now the resize script hasn't anymore harcoded widths.
This commit is contained in:
parent
ffdf8977c9
commit
3f5e294b97
1 changed files with 3 additions and 2 deletions
|
@ -65,7 +65,8 @@ function resizeiframe (hasNav) {
|
||||||
bottomMargin;
|
bottomMargin;
|
||||||
|
|
||||||
if (hasNav == true) {
|
if (hasNav == true) {
|
||||||
var iframeWidth = (winWidth - 325)+'px';
|
var navBarWidth = document.getElementById('ims-menudiv').offsetWidth;
|
||||||
|
var iframeWidth = (winWidth - navBarWidth - 25)+'px';
|
||||||
document.getElementById('ims-menudiv').style.height = (winHeight - totalHeight)+'px';
|
document.getElementById('ims-menudiv').style.height = (winHeight - totalHeight)+'px';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -75,4 +76,4 @@ function resizeiframe (hasNav) {
|
||||||
document.getElementById('ims-contentframe').style.height = (winHeight - totalHeight)+'px';
|
document.getElementById('ims-contentframe').style.height = (winHeight - totalHeight)+'px';
|
||||||
document.getElementById('ims-containerdiv').style.height = (winHeight - totalHeight)+'px';
|
document.getElementById('ims-containerdiv').style.height = (winHeight - totalHeight)+'px';
|
||||||
document.getElementById('ims-contentframe').style.width = iframeWidth;
|
document.getElementById('ims-contentframe').style.width = iframeWidth;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue