projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1a8298e
)
Roo/bootstrap/Popover.js
author
Alan Knowles
<alan@roojs.com>
Thu, 11 Feb 2021 04:32:10 +0000
(12:32 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 11 Feb 2021 04:32:10 +0000
(12:32 +0800)
Roo/bootstrap/Popover.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Popover.js
b/Roo/bootstrap/Popover.js
index
33b7f5e
..
dc25cde
100644
(file)
--- a/
Roo/bootstrap/Popover.js
+++ b/
Roo/bootstrap/Popover.js
@@
-382,8
+382,8
@@
Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, {
return this.updatePosition('right', false);
case 'top':
return this.updatePosition('right', false);
case 'top':
- var exact = this.el.getAlignToXY(this.alignEl, '
t-b
', [0,-10]);
- var offset = this.el.getAlignToXY(this.alignEl, '
t-b
?',[0,-10]);
+ var exact = this.el.getAlignToXY(this.alignEl, '
b-t
', [0,-10]);
+ var offset = this.el.getAlignToXY(this.alignEl, '
b-t
?',[0,-10]);
if (!try_move || exact.equals(offset) || exact[1] == offset[1] ) {
//normal display... or moved up/down.
this.el.setXY(offset);
if (!try_move || exact.equals(offset) || exact[1] == offset[1] ) {
//normal display... or moved up/down.
this.el.setXY(offset);
@@
-396,8
+396,8
@@
Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, {
try_move = false;
case 'bottom':
try_move = false;
case 'bottom':
- var exact = this.el.getAlignToXY(this.alignEl, '
b-t
', [0,10]);
- var offset = this.el.getAlignToXY(this.alignEl, '
b-t
?',[0,10]);
+ var exact = this.el.getAlignToXY(this.alignEl, '
t-b
', [0,10]);
+ var offset = this.el.getAlignToXY(this.alignEl, '
t-b
?',[0,10]);
if (!try_move || exact.equals(offset) || exact[1] == offset[1] ) {
//normal display... or moved up/down.
this.el.setXY(offset);
if (!try_move || exact.equals(offset) || exact[1] == offset[1] ) {
//normal display... or moved up/down.
this.el.setXY(offset);