projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49c1a79
)
Roo/bootstrap/Tooltip.js
author
edward
<edward@roojs.com>
Wed, 2 Aug 2017 06:10:15 +0000
(14:10 +0800)
committer
edward
<edward@roojs.com>
Wed, 2 Aug 2017 06:10:15 +0000
(14:10 +0800)
Roo/bootstrap/Tooltip.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Tooltip.js
b/Roo/bootstrap/Tooltip.js
index
20d7258
..
4bfc1be
100644
(file)
--- a/
Roo/bootstrap/Tooltip.js
+++ b/
Roo/bootstrap/Tooltip.js
@@
-257,6
+257,13
@@
Roo.extend(Roo.bootstrap.Tooltip, Roo.bootstrap.Component, {
if(xy[0] + this.el.getWidth() > Roo.lib.Dom.getViewWidth()){
placement = 'left';
}
+
+ var scroll = Roo.select('body', true).first().getScroll();
+
+ if(xy[1] < Roo.lib.Dom.getViewHeight() + scroll.top){
+ placement = 'top';
+ }
+
}
align = Roo.bootstrap.Tooltip.alignment[placement];