-
2 Jan 2012 5:17 PM #1
Ext.field.Slider value initialization bug
Ext.field.Slider value initialization bug
The bug can be reproduced by running the following code:
Expected result:Code:var f = Ext.create('Ext.form.Panel', { items: [ { xtype: 'sliderfield', label: 'test', name: 'test', value: 50, minValue: 0, maxValue: 100 } ] }); console.log('test: ' + f.getValues()['test']);
test: 0
Obtained result:
test: null
Workaround: Remove 'value: 50,'
Is this a bug or am I missing something?
Cheers
Alex
-
3 Jan 2012 6:37 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
In PR3, the value was not applied to the slider. In our latest code that will be part of the next release, this has been fixed.
However, looks like the value is still off.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
12 Jan 2012 3:57 PM #3Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,659
- Vote Rating
- 14
This leet bug has been fixed for the next release.
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-1337
in
2.0.


Reply With Quote