git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 3.1.1 - Released 02/08/2010
[extjs.git]
/
src
/
widgets
/
form
/
Checkbox.js
diff --git
a/src/widgets/form/Checkbox.js
b/src/widgets/form/Checkbox.js
index
5f42406
..
e900672
100644
(file)
--- a/
src/widgets/form/Checkbox.js
+++ b/
src/widgets/form/Checkbox.js
@@
-1,6
+1,6
@@
/*!
/*!
- * Ext JS Library 3.
0.0
- * Copyright(c) 2006-20
09
Ext JS, LLC
+ * Ext JS Library 3.
1.1
+ * Copyright(c) 2006-20
10
Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
*/
* licensing@extjs.com
* http://www.extjs.com/license
*/
@@
-78,18
+78,11
@@
Ext.form.Checkbox = Ext.extend(Ext.form.Field, {
// private
initEvents : function(){
Ext.form.Checkbox.superclass.initEvents.call(this);
// 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
+ });
},
/**
},
/**
@@
-120,6
+113,11
@@
Ext.form.Checkbox = Ext.extend(Ext.form.Field, {
}else{
this.checked = this.el.dom.checked;
}
}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
},
// private
@@
-141,7
+139,7
@@
Ext.form.Checkbox = Ext.extend(Ext.form.Field, {
if(this.rendered){
return this.el.dom.checked;
}
if(this.rendered){
return this.el.dom.checked;
}
- return
false
;
+ return
this.checked
;
},
// private
},
// private