PDA

View Full Version : [FIXED-522] toggle.setValue() doesn't properly update UI slider



iffius
5 Nov 2010, 1:03 PM
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:



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)

BrendanC
5 Nov 2010, 1:24 PM
Thanks for the bug report.

Jacky Nguyen
8 Dec 2010, 2:34 PM
This has been addressed since 1.0

obaid83
10 Apr 2013, 1:11 PM
I am able to reproduce this exact issue in 2.1 and 2.2beta on Android 4.0.3

Corcho
13 Aug 2014, 6:21 AM
Same here at Sencha Touch 2.3.1 and Android 4.3.

Has anyone found a workaround?