X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-bootstrap-debug.js;h=2f42775e9eae03666ca26a3b037a6dd02406bf2b;hb=cc14bf6bc18b98163c5eee1ee68c54fb56a89858;hp=85f9c9f1e91b692214a60a4a0d7ff8958e5a44e4;hpb=0d8d37922fcb6d5ec9d3c072ab196c06fe334132;p=roojs1 diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 85f9c9f1e9..2f42775e9e 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -19895,7 +19895,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. @@ -19929,11 +19929,13 @@ 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 === false ? this.placement : placement; + this.el.removeClass([ 'fade','top','bottom', 'left', 'right','in', 'bs-popover-top','bs-popover-bottom', 'bs-popover-left', 'bs-popover-right'