X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/docs/source/SplitButton.html?ds=sidebyside
diff --git a/docs/source/SplitButton.html b/docs/source/SplitButton.html
index 62262624..9d9a5eae 100644
--- a/docs/source/SplitButton.html
+++ b/docs/source/SplitButton.html
@@ -1,5 +1,6 @@
+
The source code
@@ -82,9 +83,13 @@ Ext.SplitButton = Ext.extend(Ext.Button, {
},
isClickOnArrow : function(e){
- return this.arrowAlign != 'bottom' ?
- e.getPageX() > this.el.child(this.buttonSelector).getRegion().right :
- e.getPageY() > this.el.child(this.buttonSelector).getRegion().bottom;
+ if (this.arrowAlign != 'bottom') {
+ var visBtn = this.el.child('em.x-btn-split');
+ var right = visBtn.getRegion().right - visBtn.getPadding('r');
+ return e.getPageX() > right;
+ } else {
+ return e.getPageY() > this.btnEl.getRegion().bottom;
+ }
},
// private
@@ -113,12 +118,12 @@ Ext.SplitButton = Ext.extend(Ext.Button, {
// private
isMenuTriggerOver : function(e){
- return this.menu && e.target.tagName == 'em';
+ return this.menu && e.target.tagName == this.arrowSelector;
},
// private
isMenuTriggerOut : function(e, internal){
- return this.menu && e.target.tagName != 'em';
+ return this.menu && e.target.tagName != this.arrowSelector;
}
});