X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-bootstrap-debug.js;h=7262438c94e3f3fe07c37f1642d01439ba8e94b3;hb=60cc914569a15cdab03dd3f59323a3733991a1e4;hp=9d4bfacd4f0d86ae47c1207c47b2183c03238460;hpb=cb36c9375374b7388bd0e116309727ced53cd871;p=roojs1 diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 9d4bfacd4f..7262438c94 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -19935,17 +19935,29 @@ Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, { * fire this manually after loading a grid in the table for example * */ - updatePosition : function() + updatePosition : function(placement, try_move) { this.el.addClass(placement + ' roo-popover-' + placement); - if (!this.alignEl || !this.alignment) { - return; + if (!this.alignEl ) { + return false; } + switch (placement) { + case 'right': + var exact = this.el.getAlignToXY(this.alignEl, 'tl-tr', [10,0]); + var offset = this.el.getAlignToXY(this.alignEl, 'tl-tr?',[10,0]); + if (exact.equals(offset)) { + //normal display... + this.setXY(exact, this.preanim(arguments, 3)); + var xy = this.alignEl.getAnchorXY(p1, false); + + } + + + } - this.el.alignTo(this.alignEl , this.alignment[0],this.alignment[1]); // work out the pointy position. var p1 = this.alignment[0].split('-').pop().replace('?','');