X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..6e39d509471fe9b4e2660e0d1631b350d0c66f40:/docs/source/SplitButton.html diff --git a/docs/source/SplitButton.html b/docs/source/SplitButton.html index c2c8e666..9d9a5eae 100644 --- a/docs/source/SplitButton.html +++ b/docs/source/SplitButton.html @@ -1,17 +1,12 @@ - - - The source code - - - - -
/*!
- * Ext JS Library 3.0.3
- * Copyright(c) 2006-2009 Ext JS, LLC
- * licensing@extjs.com
- * http://www.extjs.com/license
- */
-
/** + + + + The source code + + + + +
/** * @class Ext.SplitButton * @extends Ext.Button * A split button that provides a built-in dropdown arrow that can fire an event separately from the default @@ -88,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 @@ -119,15 +118,15 @@ 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; } }); -Ext.reg('splitbutton', Ext.SplitButton);
- +Ext.reg('splitbutton', Ext.SplitButton);
+ \ No newline at end of file