您好,我正在使用sencha touch 1.X,我的数据 View 在不同类型的移动设备上遇到问题。
问题是我的包含我的数据 View 的面板无法缩放到数据 View 的大小。
代码如下:
AppCenter.views.HomeList = Ext.extend(Ext.Panel, {
scroll: 'vertical',
items : [{
scroll: false,
id: 'list-data-view',
xtype: 'dataview',
store: AppCenter.stores.ListStore,
itemSelector:'div .category-container',
tpl: new Ext.XTemplate
(
my tpl
)
}]
});
在最近的手机上它工作正常。但在 iPhone 3G 及以下版本上试用时,它会执行以下操作。
滚动条的大小与我的窗口相同,而我的数据 View 比窗口大得多。
有什么建议吗?
最佳答案
这与 iPhone 屏幕分辨率有关。也许问题出在您的模板或某些自定义 CSS 中。你在某处使用绝对像素吗?
关于javascript - 数据 View 滚动问题 sencha touch,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8593424/