projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
aa0a953
)
Roo/bootstrap/Popover.js
author
Alan Knowles
<alan@roojs.com>
Thu, 11 Feb 2021 04:24:21 +0000
(12:24 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 11 Feb 2021 04:24:21 +0000
(12:24 +0800)
Roo/bootstrap/Popover.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Popover.js
b/Roo/bootstrap/Popover.js
index
1268c5c
..
33b7f5e
100644
(file)
--- a/
Roo/bootstrap/Popover.js
+++ b/
Roo/bootstrap/Popover.js
@@
-357,7
+357,7
@@
Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, {
var offset = this.el.getAlignToXY(this.alignEl, 'tl-tr?',[10,0]);
if (!try_move || exact.equals(offset) || exact[0] == offset[0] ) {
//normal display... or moved up/down.
var offset = this.el.getAlignToXY(this.alignEl, 'tl-tr?',[10,0]);
if (!try_move || exact.equals(offset) || exact[0] == offset[0] ) {
//normal display... or moved up/down.
- this.setXY(offset);
+ this.
el.
setXY(offset);
var xy = this.alignEl.getAnchorXY('tr', false);
xy[0]+=2;xy[1]+=5;
this.arrowEl.setXY(xy);
var xy = this.alignEl.getAnchorXY('tr', false);
xy[0]+=2;xy[1]+=5;
this.arrowEl.setXY(xy);
@@
-372,7
+372,7
@@
Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, {
var offset = this.el.getAlignToXY(this.alignEl, 'tr-tl?',[-10,0]);
if (!try_move || exact.equals(offset) || exact[0] == offset[0] ) {
//normal display... or moved up/down.
var offset = this.el.getAlignToXY(this.alignEl, 'tr-tl?',[-10,0]);
if (!try_move || exact.equals(offset) || exact[0] == offset[0] ) {
//normal display... or moved up/down.
- this.setXY(offset);
+ this.
el.
setXY(offset);
var xy = this.alignEl.getAnchorXY('tl', false);
xy[0]+=2;xy[1]+=5; // << fix me
this.arrowEl.setXY(xy);
var xy = this.alignEl.getAnchorXY('tl', false);
xy[0]+=2;xy[1]+=5; // << fix me
this.arrowEl.setXY(xy);
@@
-386,7
+386,7
@@
Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, {
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.
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.setXY(offset);
+ this.
el.
setXY(offset);
var xy = this.alignEl.getAnchorXY('b', false);
xy[0]+=2;xy[1]+=5; // << fix me
this.arrowEl.setXY(xy);
var xy = this.alignEl.getAnchorXY('b', false);
xy[0]+=2;xy[1]+=5; // << fix me
this.arrowEl.setXY(xy);
@@
-400,7
+400,7
@@
Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, {
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.
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.setXY(offset);
+ this.
el.
setXY(offset);
var xy = this.alignEl.getAnchorXY('t', false);
xy[0]+=2;xy[1]+=5; // << fix me
this.arrowEl.setXY(xy);
var xy = this.alignEl.getAnchorXY('t', false);
xy[0]+=2;xy[1]+=5; // << fix me
this.arrowEl.setXY(xy);