Size app iframe via document.viewport.getHeight(), which can be overloaded if desired
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 4 Nov 2009 18:59:39 +0000 (11:59 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 6 Nov 2009 20:50:08 +0000 (13:50 -0700)
imp/js/DimpBase.js

index a8b7694..1aaadf9 100644 (file)
@@ -327,17 +327,13 @@ var DimpBase = {
 
     iframeContent: function(name, loc)
     {
-        if (name === null) {
-            name = loc;
-        }
-
         var container = $('dimpmain_portal'), iframe;
         if (!container) {
             DimpCore.showNotifications([ { type: 'horde.error', message: 'Bad portal!' } ]);
             return;
         }
 
-        iframe = new Element('IFRAME', { id: 'iframe' + name, className: 'iframe', frameBorder: 0, src: loc });
+        iframe = new Element('IFRAME', { id: 'iframe' + (name === null ? loc : name), className: 'iframe', frameBorder: 0, src: loc }).setStyle({ height: document.viewport.getHeight() + 'px' });
         this._resizeIE6Iframe(iframe);
         container.insert(iframe);
     },