projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2846a80
)
Roo/bootstrap/Menu.js
author
john
<john@roojs.com>
Fri, 10 Aug 2018 04:44:19 +0000
(12:44 +0800)
committer
john
<john@roojs.com>
Fri, 10 Aug 2018 04:44:19 +0000
(12:44 +0800)
Roo/bootstrap/Menu.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Menu.js
b/Roo/bootstrap/Menu.js
index
17b14d6
..
6443615
100644
(file)
--- a/
Roo/bootstrap/Menu.js
+++ b/
Roo/bootstrap/Menu.js
@@
-279,7
+279,11
@@
Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component, {
this.hidden = false;
this.triggerEl.addClass('open');
- if(this.el.getWidth() + xy[0] > Roo.lib.Dom.getViewWidth()){
+ if(this.el.getWidth() + xy[0] >= Roo.lib.Dom.getViewWidth()){
+ xy[0] = xy[0] - this.el.getWidth() + this.triggerEl.getWidth();
+ }
+
+ if(this.el.getWidth() + xy[0] >= Roo.lib.Dom.getViewWidth()){
xy[0] = xy[0] - this.el.getWidth() + this.triggerEl.getWidth();
}