From: Alan Knowles Date: Thu, 28 Jan 2021 05:35:19 +0000 (+0800) Subject: roojs-bootstrap.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=9019aeb3cd9ed2ff9ce51458950b4d4dd605c8db roojs-bootstrap.js roojs-bootstrap-debug.js Roo/bootstrap/Popover.js --- diff --git a/Roo/bootstrap/Popover.js b/Roo/bootstrap/Popover.js index d1d9d6293e..4c8079ead1 100644 --- a/Roo/bootstrap/Popover.js +++ b/Roo/bootstrap/Popover.js @@ -53,13 +53,15 @@ Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, { placement : 'right', trigger : 'hover', // hover - + modal : false, delay : 0, over: false, can_build_overlaid : false, + maskEl : false, // the mask element + getChildContainer : function() { return this.el.select('.popover-content',true).first(); diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index b2eefa4be1..3df4a3db1e 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -19738,6 +19738,9 @@ Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, { this.items = nitems; + this.maskEl = Roo.DomHelper.append(document.body, {tag: "div", cls:"x-dlg-mask"}, true); + + this.initEvents(); }, diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 5ccc6ab140..35bac87fbf 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -813,9 +813,9 @@ Roo.bootstrap.Popover=function(A){Roo.bootstrap.Popover.superclass.constructor.c },getAutoCreate:function(){var A={cls:'popover roo-dynamic shadow roo-popover',style:'display:block',cn:[{cls:'arrow'},{cls:'popover-inner ',cn:[{tag:'h3',cls:'popover-title popover-header',html:this.title||''},{cls:'popover-content popover-body'+this.cls,html:this.html||''} ]}]};return A;},setTitle:function(A){this.title=A;if(this.el){this.el.select('.popover-title',true).first().dom.innerHTML=A;}},setContent:function(A){this.html=A;if(this.el){this.el.select('.popover-content',true).first().dom.innerHTML=A;}},onRender:function(ct,A){Roo.bootstrap.Component.superclass.onRender.call(this,ct,A); if(!this.el){var B=Roo.apply({},this.getAutoCreate());B.id=Roo.id();if(this.cls){B.cls+=' '+this.cls;}if(this.style){B.style=this.style;}this.el=Roo.get(document.body).createChild(B,A);}var C=[];if(typeof(this.items)!='undefined'){var D=this.items;delete this.items; -for(var i=0;i