mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-47500 scorm: improved height calculation
This commit is contained in:
parent
577bd70d38
commit
ea6763e421
2 changed files with 9 additions and 3 deletions
|
@ -298,9 +298,11 @@ M.mod_scorm.init = function(Y, nav_display, navposition_left, navposition_top, h
|
||||||
}
|
}
|
||||||
|
|
||||||
// Calculate the rough new height from the viewport height.
|
// Calculate the rough new height from the viewport height.
|
||||||
newheight = Y.one('body').get('winHeight') - 5;
|
var newheight = Y.one('body').get('winHeight') - 5
|
||||||
if (newheight < 600) {
|
- Y.one('#scorm_layout').getY()
|
||||||
newheight = 600;
|
- window.pageYOffset;
|
||||||
|
if (newheight < 680 || isNaN(newheight)) {
|
||||||
|
newheight = 680;
|
||||||
}
|
}
|
||||||
Y.one('#scorm_layout').setStyle('height', newheight);
|
Y.one('#scorm_layout').setStyle('height', newheight);
|
||||||
|
|
||||||
|
|
|
@ -269,6 +269,10 @@
|
||||||
word-spacing: -0.43em;
|
word-spacing: -0.43em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#scorm_layout {
|
||||||
|
margin-bottom: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Opera as of 12 on Windows needs word-spacing.
|
* Opera as of 12 on Windows needs word-spacing.
|
||||||
* The ".opera-only" selector is used to prevent actual prefocus styling
|
* The ".opera-only" selector is used to prevent actual prefocus styling
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue