【发布时间】:2015-07-23 06:18:48
【问题描述】:
我正在使用 sencha touch 实现一个应用程序。 cmd 6,触摸 2.4,架构师 3.0.0.1
我正在使用抽屉组件,我想绘制一个矩形精灵。 Firefox 可以显示我的矩形,但 chrome 不能,当我将我的应用程序传输到 apk 时... 这是我的代码:
Ext.define('MyApp.view.MyComponent', {
extend: 'Ext.draw.Component',
config: {
border: 9,
bottom: '',
centered: false,
cls: 'sa',
draggable: true,
fullscreen: true,
id: 'd21',
itemId: 's21',
zIndex: 4,
modal: false,
sprites: [
{
zIndex: 30,
type: 'rect',
width: 100,
height: 30,
fill: 'red',
stroke: 'black',
fx: {
duration: 0.00001,
to: {
fill: '#00ff00'// Green
}
},
translate: {
x: 130,
y: 115
}
},
{
type: 'text',
fontSize: 18,
fill: '#000',
text: 0,
textAlign: 'center',
x: 90,
y: 140
}
]
}
});
有什么问题?
【问题讨论】:
标签: google-chrome firefox extjs touch drawer