2013-04-08 103 views
0
Ext.define('Test.view.Main', { 
    extend: 'Ext.Container', 
    xtype: 'mainview',  
    config: { 
    scrollable:'vertical', 
     fullscreen: true, 
     items: [{ 
      xtype:'toolbar', 
      title:'Timesheets', 
      docked:'top', 
      cls:'toolbarcls', 
      items:[{ 
       xtype:'button', 
       cls:'toolbarcls buttoncls', 
       iconCls:'more', 
       iconMask:true, 
       handler:function(){ 
        Ext.Msg.alert("Left Button Pressed"); 
       } 
       //text:'tet' 
      }, 
      {xtype: 'spacer'}, 
      { 
       xtype:'button', 
       cls:'toolbarcls buttoncls addbutton', 
       text:'ADD', 
       handler:function(){ 
        Ext.Msg.alert("Right Button Pressed"); 
       } 

      }] 

     },{ 
      xtype:'calendar' 

     },{ 
      xtype:'panel', 
      width:'100%', 
      id:'datepanel', 
      cls:'bgcolor', 


     },{ 
      xtype:'list', 
       id:'thelist', 
       height:'50px', width:'100%',left:0, 

      data: [ 
       {name: 'Shawshank Redemption', number: 5}, 
       {name: 'SuperBad', number: 3}, 
       {name: 'God Father', number: 5}, 
       {name: 'Forest Gump', number: 4.5}, 
       {name: 'A Beautiful Mind', number: 5} 
      ],itemTpl: '{name}' 
      }] 

    }, 
    initialize: function() { 
     this.callParent(arguments); 
    }, 

    }); 

这段代码工作正常与sencha触摸2.0,但我升级到sencha触摸2.1.1。现在列出日历上的Ovelaps。可能是什么问题呢。应用程序不工作升级sencha触摸从2.0到2.1.1

在此先感谢

回答

0

尝试添加layout到你的配置(刚过“全屏:真正的”为例):

layout: 'vbox', 

如果这不起作用,该问题可能是在'日历'对象。我试着改变它为'textareafield',它显示正确。

相关问题