projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c652b4e
)
Roo/bootstrap/Menu.js
author
edward
<edward@roojs.com>
Fri, 24 Feb 2017 06:25:07 +0000
(14:25 +0800)
committer
edward
<edward@roojs.com>
Fri, 24 Feb 2017 06:25:07 +0000
(14:25 +0800)
Roo/lib/Dom.js
Roo/bootstrap/Menu.js
patch
|
blob
|
history
Roo/lib/Dom.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Menu.js
b/Roo/bootstrap/Menu.js
index
f611759
..
cb5627c
100644
(file)
--- a/
Roo/bootstrap/Menu.js
+++ b/
Roo/bootstrap/Menu.js
@@
-267,8
+267,7
@@
Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component, {
if(this.el.getWidth() + xy[0] > Roo.lib.Dom.getViewWidth()){
xy[0] = xy[0] - this.el.getWidth() + this.triggerEl.getWidth();
}
- Roo.log(this.el.getStyle('top'));
- return;
+
this.el.setXY(xy);
this.focus();
this.fireEvent("show", this);
diff --git
a/Roo/lib/Dom.js
b/Roo/lib/Dom.js
index
7692369
..
62c4e24
100644
(file)
--- a/
Roo/lib/Dom.js
+++ b/
Roo/lib/Dom.js
@@
-179,10
+179,7
@@
Roo.lib.Dom = {
setXY : function(el, xy) {
el = Roo.fly(el, '_setXY');
el.position();
- Roo.log(el);
- Roo.log(xy);
var pts = el.translatePoints(xy);
- Roo.log(['pts', pts]);
if (xy[0] !== false) {
el.dom.style.left = pts.left + "px";
}