projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5890743
)
Roo/bootstrap/Menu.js
author
john
<john@roojs.com>
Fri, 10 Aug 2018 04:51:51 +0000
(12:51 +0800)
committer
john
<john@roojs.com>
Fri, 10 Aug 2018 04:51:51 +0000
(12:51 +0800)
Roo/bootstrap/Menu.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Menu.js
b/Roo/bootstrap/Menu.js
index
f54cfb8
..
4ed8607
100644
(file)
--- a/
Roo/bootstrap/Menu.js
+++ b/
Roo/bootstrap/Menu.js
@@
-279,10
+279,12
@@
Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component, {
this.hidden = false;
this.triggerEl.addClass('open');
+ // reassign x when hitting right
if(this.el.getWidth() + xy[0] >= Roo.lib.Dom.getViewWidth()){
xy[0] = xy[0] - this.el.getWidth() + this.triggerEl.getWidth();
}
+ // reassign y when hitting bottom
if(this.el.getHeight() + xy[1] >= Roo.lib.Dom.getViewHeight()){
xy[1] = this.el.getAlignToXY(this.triggerEl, '?')[1];
}