Sencha Touch version tested:
  • 0.9 rev 8 & 9
  • only default ext-all.css



Platform tested against:
  • iOS 4
  • Safari 4

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)