From: Alan Knowles Date: Thu, 28 Jan 2021 08:13:19 +0000 (+0800) Subject: Roo/bootstrap/Popover.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=424e8ab0457c33b61390160167d9d235a6b460f8 Roo/bootstrap/Popover.js --- diff --git a/Roo/bootstrap/Popover.js b/Roo/bootstrap/Popover.js index 8795b8a77d..1f6cf7baea 100644 --- a/Roo/bootstrap/Popover.js +++ b/Roo/bootstrap/Popover.js @@ -61,16 +61,19 @@ Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, { can_build_overlaid : false, maskEl : false, // the mask element + headerEl : false, + contentEl : false, + getChildContainer : function() { return this.contentEl; - return this.el.select('.popover-content',true).first(); + }, getPopoverHeader : function() { return this.headerEl - } + }, getAutoCreate : function(){ @@ -109,7 +112,7 @@ Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, { { this.title = str; if (this.el) { - this.el.select('.popover-title',true).first().dom.innerHTML = str; + this.headerEl.dom.innerHTML = str; } },