Roo/bootstrap/Popover.js
authorAlan Knowles <alan@roojs.com>
Thu, 11 Feb 2021 04:10:12 +0000 (12:10 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 11 Feb 2021 04:10:12 +0000 (12:10 +0800)
Roo/bootstrap/Popover.js

index bc7b520..8f06245 100644 (file)
@@ -299,7 +299,7 @@ Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component,  {
         
  
         if (on_el) {
-            this.updatePosition(placement);
+            this.updatePosition(this.placement, true);
              
         } else {
             // this is usually just done by the builder = to show the popoup in the middle of the scren.
@@ -338,6 +338,7 @@ Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component,  {
      */
     updatePosition : function(placement, try_move)
     {
+        placement
         this.el.removeClass([
             'fade','top','bottom', 'left', 'right','in',
             'bs-popover-top','bs-popover-bottom', 'bs-popover-left', 'bs-popover-right'