From: Alan Knowles Date: Thu, 28 Jan 2021 05:41:03 +0000 (+0800) Subject: roojs-bootstrap.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=2c4610332e263951c495256c4dae144118a0c0d8 roojs-bootstrap.js roojs-bootstrap-debug.js --- diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 50fa9e5ae7..ef5bb90eb0 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -19753,7 +19753,7 @@ Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, { Roo.lib.Dom.getViewWidth(true), Roo.lib.Dom.getViewHeight(true) ); - } + }, initEvents : function() { @@ -19916,6 +19916,15 @@ Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, { this.hoverState = 'in'; + if (this.modal) { + this.maskEl.setSize(Roo.lib.Dom.getViewWidth(true), Roo.lib.Dom.getViewHeight(true)); + this.maskEl.setStyle('z-index', Roo.bootstrap.Popover.zIndex++); + this.maskEl.dom.style.display = 'block'; + this.maskEl.addClass('show'); + } + + + this.fireEvent('show', this); }, @@ -19940,6 +19949,8 @@ Roo.apply(Roo.bootstrap.Popover, { 'bottom' : ['t-b', [0,10], 'top bs-popover-top'], 'top' : [ 'b-t', [0,-10], 'bottom bs-popover-bottom'] }, + + zIndex : 20001, clickHander : false, diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index e03beae130..e05298392f 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -814,16 +814,17 @@ Roo.bootstrap.Popover=function(A){Roo.bootstrap.Popover.superclass.constructor.c ]}]};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