Thank you for reporting this bug. We will make it our priority to review this report.
-
Ext User
[FIXED-522] toggle.setValue() doesn't properly update UI slider
Sencha Touch version tested:
Platform tested against:
Description:
- toggle UI does not update position when pragmatically setting with setValue()
- Value is updated and color is update but not the actual slider position
Test Case:
Code:
Ext.setup({
onReady: function(){
var toggle = new Ext.form.Toggle({
id: 'toggle',
name: 'toggle',
xtype: 'toggle',
value: 0
});
new Ext.form.FormPanel({
fullscreen: true,
items: [toggle]
});
console.log(toggle.getValue());
toggle.setValue(1);
console.log(toggle.getValue());
}
});
Steps to reproduce the problem:
- Run above example, verify slider has not moved (but color is green)
-
Sencha User
Thanks for the bug report.
-
This has been addressed since 1.0
Sencha Touch Lead Architect
-
Sencha User
I am able to reproduce this exact issue in 2.1 and 2.2beta on Android 4.0.3
-
Sencha User
Same here at Sencha Touch 2.3.1 and Android 4.3.
Has anyone found a workaround?