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

index 8f06245..305e1a9 100644 (file)
@@ -333,12 +333,12 @@ Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component,  {
     },
     /**
      * fire this manually after loading a grid in the table for example
-     * @param {string} (left|right|top|bottom) where to try and put it
+     * @param {string} (left|right|top|bottom) where to try and put it (use false to use the last one)
      * @param {Boolean} try and move it if we cant get right position.
      */
     updatePosition : function(placement, try_move)
     {
-        placement
+        placement = placement
         this.el.removeClass([
             'fade','top','bottom', 'left', 'right','in',
             'bs-popover-top','bs-popover-bottom', 'bs-popover-left', 'bs-popover-right'