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;
|
||||
|
||||
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';
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue