projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c1ba4e8
)
Roo/bootstrap/Popover.js
author
Alan Knowles
<alan@roojs.com>
Thu, 11 Feb 2021 03:57:49 +0000
(11:57 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 11 Feb 2021 03:57:49 +0000
(11:57 +0800)
Roo/bootstrap/Popover.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Popover.js
b/Roo/bootstrap/Popover.js
index
81b1586
..
5e9df36
100644
(file)
--- a/
Roo/bootstrap/Popover.js
+++ b/
Roo/bootstrap/Popover.js
@@
-344,12
+344,24
@@
Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, {
this.el.addClass(placement + ' roo-popover-' + placement);
if (!this.alignEl ) {
this.el.addClass(placement + ' roo-popover-' + placement);
if (!this.alignEl ) {
- return;
+ 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);
+
+ }
+
+
}
}
- switch ()
- this.el.alignTo(this.alignEl , this.alignment[0],this.alignment[1]);
// work out the pointy position.
var p1 = this.alignment[0].split('-').pop().replace('?','');
// work out the pointy position.
var p1 = this.alignment[0].split('-').pop().replace('?','');