PDA

View Full Version : [INFOREQ] [4.0.7] Spin in numberfield



Radius-Service
14 Nov 2011, 9:20 PM
Ext.create('Ext.window.Window', {
id : 'vProductsParam.editWindow',
layout: {
type: 'auto',
align: 'stretch'
},
closable : false,
closeAction : 'hide',
resizable : false,
draggable : false,
plain : true,
modal : true,
bodyStyle : 'padding: 10px 10px 5px 10px',
defaults : { width: 400 },
items: [
{
id : 'vProductsParam.editWindow.field_title',
xtype : 'textfield',
fieldLabel : '????????',
maxLength : 250,
allowBlank : false
},
{
id : 'vProductsParam.editWindow.field_priority',
xtype : 'numberfield',
fieldLabel : '?????????',
value : 0,
minValue : 0,
maxValue : 10000,
allowBlank : false
}
]
});
}

Error:

Event thread: mousewheel
Uncaught exception: TypeError: Cannot convert 'me.spinDownEl' to object
Error thrown at line 103376, column 12 in <anonymous function: setSpinDownEnabled>(enabled) in http://test.arma.radius-s.ru/extjs/ext-all-debug.js:
me.spinDownEl[enabled ? 'removeCls' : 'addCls'](me.trigger2Cls + '-disabled');
called from line 103678, column 8 in <anonymous function: onChange>() in http://test.arma.radius-s.ru/extjs/ext-all-debug.js:
me.setSpinDownEnabled(valueIsNull || value > me.minValue);
called from line 93589, column 16 in <anonymous function: checkChange>() in http://test.arma.radius-s.ru/extjs/ext-all-debug.js:
me.onChange(newVal, oldVal);
called from line 93475, column 8 in <anonymous function: setValue>(value) in http://test.arma.radius-s.ru/extjs/ext-all-debug.js:
me.checkChange();
called via Function.prototype.call() from line 96183, column 8 in <anonymous function: setValue>(value) in http://test.arma.radius-s.ru/extjs/ext-all-debug.js:
return me.mixins.field.setValue.call(me, value);
called via Function.prototype.apply() from line 4800, column 12 in <anonymous function: callParent>(args) in http://test.arma.radius-s.ru/extjs/ext-all-debug.js:
return parentClass[methodName].apply(this, args || []);
called from line 96923, column 8 in <anonymous function: setValue>(value) in http://test.arma.radius-s.ru/extjs/ext-all-debug.js:
me.callParent(arguments);
called from line 103732, column 12 in <anonymous function: onSpinUp>() in http://test.arma.radius-s.ru/extjs/ext-all-debug.js:
me.setValue(Ext.Number.constrain(me.getValue() + me.step, me.minValue, me.maxValue));
called from line 103336, column 12 in <anonymous function: spinUp>() in http://test.arma.radius-s.ru/extjs/ext-all-debug.js:
me.onSpinUp();
called from line 103390, column 16 in <anonymous function: onMouseWheel>(e) in http://test.arma.radius-s.ru/extjs/ext-all-debug.js:
me.spinUp();

If you set the flag hideTrigger: true, then all is Ok.

mitchellsimoens
19 Nov 2011, 1:37 PM
Just tested on 4.0.7 and our latest code (4.1.0) and could not reproduce. What browser(s) have you tried this on?

Radius-Service
21 Nov 2011, 1:48 AM
Test site: http://extjs-test.vashot.com/

Please click on the button "Test_2" in the menu.

WinXP SP3, Ext JS 4.0. 7-gpl
Opera 10.52, Firefox 8.0, Chrom 15, IE 8