2012-02-23 134 views
0

Iam使用sencha touch来构建移动应用程序,在我的选项卡面板中使用卡布局开关。有时卡的布局不正常。请帮助我解决这个问题。sencha触摸卡布局无法正常工作

App.views.TabPanelView = Ext.extend(Ext.TabPanel, { 
cardSwitchAnimation: { 
      type: 'slide', 
      cover: true 
     }, 

     defaults: { 
      scroll: 'horizontal' 
     }, 
     items: [item1, item2,item3,item4,item5] 
    } 
    } 
+1

请将代码发送到 – 2012-02-23 09:21:50

+0

当我从item5切换到item1时,有时它不会显示item1选项卡。有时它像魅力一样运作良好。 – Nag 2012-02-23 09:37:44

+0

你可以给项目的声明或者至少是他们的类型(面板,列表,嵌套列表...) – 2012-02-23 09:40:53

回答

0

简单的只是把cover: false在cardSwitchAnimation。希望它可以工作

+1

超级纳格它现在像一个魅力工作。 – Nag 2012-02-23 13:10:23

0

首先,你应该改变horizantalhorizontal