From: Alan Knowles Date: Tue, 2 Feb 2021 02:23:00 +0000 (+0800) Subject: Roo/bootstrap/panel/Content.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=06a984043306509ae79b93286a0c551fa8b09ff0 Roo/bootstrap/panel/Content.js --- diff --git a/Roo/bootstrap/panel/Content.js b/Roo/bootstrap/panel/Content.js index 798d3db24f..617937f15b 100644 --- a/Roo/bootstrap/panel/Content.js +++ b/Roo/bootstrap/panel/Content.js @@ -81,6 +81,10 @@ Roo.bootstrap.panel.Content = function( config){ } this.el = Roo.DomHelper.append(document.body, elcfg , true); + if (this.iframe) { + this.iframeEl = this.el.select('iframe',true).first(); + } + } } this.closable = false; @@ -177,7 +181,7 @@ Roo.bootstrap.panel.Content = function( config){ - if(this.autoScroll){ + if(this.autoScroll && !this.iframe){ this.resizeEl.setStyle("overflow", "auto"); } else { // fix randome scrolling @@ -256,11 +260,15 @@ Roo.extend(Roo.bootstrap.panel.Content, Roo.bootstrap.Component, { return true; }, /** - * Updates this panel's element + * Updates this panel's element (not for iframe) * @param {String} content The new content * @param {Boolean} loadScripts (optional) true to look for and process scripts */ setContent : function(content, loadScripts){ + if (this.iframe) { + return; + } + this.el.update(content, loadScripts); },