projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b866476
)
Roo/bootstrap/Popover.js
author
Alan Knowles
<alan@roojs.com>
Thu, 11 Feb 2021 03:49:11 +0000
(11:49 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 11 Feb 2021 03:49:11 +0000
(11:49 +0800)
Roo/bootstrap/Popover.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Popover.js
b/Roo/bootstrap/Popover.js
index
b77309d
..
4674786
100644
(file)
--- a/
Roo/bootstrap/Popover.js
+++ b/
Roo/bootstrap/Popover.js
@@
-295,29
+295,10
@@
Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, {
this.headerEl.hide();
}
this.headerEl.hide();
}
- // why make it so complicated... - we used to support functional calls for this .. why ?
-
-
- /*
- var autoToken = /\s?auto?\s?/i; /// not sure how this was supposed to work? right auto ? what?
-
- // I think 'auto right' - but
-
- var autoPlace = autoToken.test(placement);
- if (autoPlace) {
- placement = placement.replace(autoToken, '') || 'top';
- }
- */
-
-
+
this.el.show();
this.el.show();
- this.el.dom.style.display='block';
-
- //this.el.appendTo(on_el);
-
- var p = this.getPosition();
- var box = this.el.getBox();
-
+ this.el.dom.style.display = 'block';
+
this.el.addClass(placement + ' roo-popover-' + placement);
this.el.addClass(placement + ' roo-popover-' + placement);
@@
-360,9
+341,14
@@
Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, {
*/
updatePosition : function()
{
*/
updatePosition : function()
{
+ this.el.addClass(placement + ' roo-popover-' + placement);
+
if (!this.alignEl || !this.alignment) {
return;
}
if (!this.alignEl || !this.alignment) {
return;
}
+
+
+
this.el.alignTo(this.alignEl , this.alignment[0],this.alignment[1]);
// work out the pointy position.
this.el.alignTo(this.alignEl , this.alignment[0],this.alignment[1]);
// work out the pointy position.