X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..2e847cf21b8ab9d15fa167b315ca5b2fa92638fc:/docs/source/Checkbox.html diff --git a/docs/source/Checkbox.html b/docs/source/Checkbox.html index 1bb0f1b9..fc4adcf6 100644 --- a/docs/source/Checkbox.html +++ b/docs/source/Checkbox.html @@ -1,5 +1,6 @@ + The source code @@ -79,18 +80,11 @@ Ext.form.Checkbox = Ext.extend(Ext.form.Field, { // private initEvents : function(){ Ext.form.Checkbox.superclass.initEvents.call(this); - this.mon(this.el, 'click', this.onClick, this); - this.mon(this.el, 'change', this.onClick, this); - }, - - // private - getResizeEl : function(){ - return this.wrap; - }, - - // private - getPositionEl : function(){ - return this.wrap; + this.mon(this.el, { + scope: this, + click: this.onClick, + change: this.onClick + }); },
/** @@ -121,6 +115,11 @@ Ext.form.Checkbox = Ext.extend(Ext.form.Field, { }else{ this.checked = this.el.dom.checked; } + // Need to repaint for IE, otherwise positioning is broken + if(Ext.isIE){ + this.wrap.repaint(); + } + this.resizeEl = this.positionEl = this.wrap; }, // private @@ -142,7 +141,7 @@ Ext.form.Checkbox = Ext.extend(Ext.form.Field, { if(this.rendered){ return this.el.dom.checked; } - return false; + return this.checked; }, // private