From c366df9029f72051a5fa9daf53b9d57d1a02688a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 28 Jan 2021 13:39:21 +0800 Subject: [PATCH] roojs-bootstrap.js roojs-bootstrap-debug.js Roo/bootstrap/Popover.js --- Roo/bootstrap/Popover.js | 8 ++++++++ roojs-bootstrap-debug.js | 7 ++++++- roojs-bootstrap.js | 19 ++++++++++--------- 3 files changed, 24 insertions(+), 10 deletions(-) diff --git a/Roo/bootstrap/Popover.js b/Roo/bootstrap/Popover.js index 3d66104f7c..544409e15f 100644 --- a/Roo/bootstrap/Popover.js +++ b/Roo/bootstrap/Popover.js @@ -156,6 +156,14 @@ Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, { this.initEvents(); }, + resizeMask : function() + { + this.maskEl.setSize( + Roo.lib.Dom.getViewWidth(true), + Roo.lib.Dom.getViewHeight(true) + ); + } + initEvents : function() { diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 6d4f1cf3ec..0de3426267 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -19741,12 +19741,17 @@ 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); - + Roo.EventManager.onWindowResize(this.resizeMask, this, true); this.initEvents(); }, + resizeMask : function() + { + + } + initEvents : function() { diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index de08617650..67a872b464 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -813,15 +813,16 @@ 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