sench touch的Cannot read property 'offsetBoundary' of undefined有关问题

sench touch的Cannot read property offsetBoundary of undefined问题在 Sencha Touch中,如果对一个Ext.

sench touch的Cannot read property 'offsetBoundary' of undefined问题

在 Sencha Touch中,如果对一个Ext.form.Toggle的对象直接setValue,将会出现Cannot read property 'offsetBoundary' of undefined的错误,这算是一个bug,因为在slider的代码注释中的例子,就是直接setValue的,要避免这个错误,必须在render完之后进行setValue操作:

?

listener: {     afterrender: function(theSlider){                       theSlider.setValue(35);                    }}

?

?