Skip to content
Browse files

Leaving a little more room beneath embedded object so it doesn't get …

…cut off on some themes.
  • Loading branch information...
1 parent c07aec1 commit a390d4537cb5aba805258d8d7458842f7ea5a9c6 @scriby scriby committed Oct 10, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 mod/lti/view.php
View
5 mod/lti/view.php
@@ -142,14 +142,17 @@
var dom = YAHOO.util.Dom;
var frame = document.getElementById('contentframe');
+
+ var padding = 15; //The bottom of the iframe wasn't visible on some themes. Probably because of border widths, etc.
var lastHeight;
var resize = function(){
var viewportHeight = dom.getViewportHeight();
if(lastHeight !== Math.min(dom.getDocumentHeight(), viewportHeight)){
- frame.style.height = viewportHeight - dom.getY(frame) + 'px';
+
+ frame.style.height = viewportHeight - dom.getY(frame) - padding + 'px';
lastHeight = Math.min(dom.getDocumentHeight(), dom.getViewportHeight());
}

0 comments on commit a390d45

Please sign in to comment.
Something went wrong with that request. Please try again.