X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..6e39d509471fe9b4e2660e0d1631b350d0c66f40:/docs/source/Checkbox.html diff --git a/docs/source/Checkbox.html b/docs/source/Checkbox.html index 1bb0f1b9..d7afa1a0 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,14 @@ 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; + if(Ext.isEmpty(this.boxLabel)){ + this.el.addClass('x-form-check-nolabel'); + } }, // private @@ -142,7 +144,7 @@ Ext.form.Checkbox = Ext.extend(Ext.form.Field, { if(this.rendered){ return this.el.dom.checked; } - return false; + return this.checked; }, // private