-
3 Jul 2012 5:07 AM #1
Bug in DatePicker
Bug in DatePicker
REQUIRED INFORMATIONExt version tested:
- Sencha 2.0.1
- Any
- Wrong init of of the DatePicker slot
- provided
-
3 Jul 2012 5:52 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,581
- Vote Rating
- 433
What is the bug?
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.
-
3 Jul 2012 5:57 AM #3
in function setValue() last slot always inited to wrong value. Does not matter find it in loop or not.
Code:setValue: function(values, animated) { var me = this, slots = me.getInnerItems(), ln = slots.length, key, slot, loopSlot, i, value; if (!values) { values = {}; for (i = 0; i < ln; i++) { //set the value to false so the slot will return null when getValue is called values[slots[i].config.name] = null; } } for (key in values) { slot = null; // missed value = values[key]; for (i = 0; i < slots.length; i++) { loopSlot = slots[i]; if (loopSlot.config.name == key) { slot = loopSlot; break; } } if (slot) { if (animated) { slot.setValueAnimated(value); } else { slot.setValue(value); } } } me._values = me._value = values; return me; },
-
3 Jul 2012 6:04 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,581
- Vote Rating
- 433
Thanks for the report. Basically this happens when you pass in a value that has a property that doesn't match a slot?
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.
-
3 Jul 2012 6:10 AM #5
No, the configured last slot always inits wrong if it is not the last element of total slots collection
-
6 Jul 2012 9:25 AM #6Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,651
- Vote Rating
- 14
This 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-3068
in
2.0.


Reply With Quote