首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

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

2012-08-21 
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);                    }}

?

?

热点排行