<html>\r
<head>\r
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> \r
<title>The source code</title>\r
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
},\r
\r
isClickOnArrow : function(e){\r
- return this.arrowAlign != 'bottom' ?\r
- e.getPageX() > this.el.child(this.buttonSelector).getRegion().right :\r
- e.getPageY() > this.el.child(this.buttonSelector).getRegion().bottom;\r
+ if (this.arrowAlign != 'bottom') {\r
+ var visBtn = this.el.child('em.x-btn-split');\r
+ var right = visBtn.getRegion().right - visBtn.getPadding('r');\r
+ return e.getPageX() > right;\r
+ } else {\r
+ return e.getPageY() > this.btnEl.getRegion().bottom;\r
+ }\r
},\r
\r
// private\r
\r
// private\r
isMenuTriggerOver : function(e){\r
- return this.menu && e.target.tagName == 'em';\r
+ return this.menu && e.target.tagName == this.arrowSelector;\r
},\r
\r
// private\r
isMenuTriggerOut : function(e, internal){\r
- return this.menu && e.target.tagName != 'em';\r
+ return this.menu && e.target.tagName != this.arrowSelector;\r
}\r
});\r
\r