Skip to content
Snippets Groups Projects
Commit 04ce9549 authored by uhensler's avatar uhensler
Browse files

OO-4323: Horizontal scrolling in large single page course elements

parent c81de439
No related branches found
No related tags found
No related merge requests found
......@@ -6,14 +6,15 @@ function registerIFrame(iFrameId) {
jQuery("#" + iFrameId).iFrameResize({
checkOrigin: false,
warningTimeout: 0,
scrolling: true,
initCallback: function(iframe) {
if (debugIFRH) console.log("iFrame %s registered.", iFrameId);
iframe.style.overflow = "hidden";
iframe.scrolling = "no";
iframe.contentDocument.body.style["overflow-y"] = "hidden";
iframe.contentDocument.body.style["overflow-x"] = "auto";
// only needed for IE11 but seams to not brake other browsers
iframe.contentDocument.body.scroll = "no";
},
resizedCallback: function() {
resizedCallback: function(iframe) {
OPOL.adjustHeight()
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment