2012-09-05 119 views
0

大家好!Sencha Touch 2需要幫助佈局

我需要這個佈局位置爲我在煎茶觸摸應用程序2.

Layout position needed

代碼的xtype:正常工作

items: [ 
      { 
       xtype:  'panel', 
       docked:  'left', 
       items: [ 
        { 
         xtype: 'panel', 
         docked: 'top', 
         html: '1' 
        }, 
        { 
         xtype: 'panel', 
         docked: 'top', 
         html: '2' 
        } 
       ] 
      }, 
      { 
       xtype:  'panel', 
       docked:  'top', 
       html:  '3' 
      } 
     ] 

'面板' 但是,如果我更換一個面板的xtype :'list'

items: [ 
      { 
       xtype:  'panel', 
       docked:  'left', 
       items: [ 
        { 
         xtype: 'panel', 
         docked: 'top', 
         html: '1' 
        }, 
        { 
         xtype: 'list', 
         docked: 'top', 
         store: 'mystore', 
         itemTpl:'<div>{Caption}</div>' 
        } 
       ] 
      }, 
      { 
       xtype:  'panel', 
       docked:  'top', 
       html:  '3' 
      } 
     ] 

它不顯示在瀏覽器中,只顯示xtype:'面板'的面板。我究竟做錯了什麼?

謝謝。

回答

2

嘗試絕對位置

   { 
        xtype: 'list', 
        docked: 'top', 
        top: 0, 
        bottom: 0, 
        left: 0, 
        right: 0, 
        store: 'mystore', 
        itemTpl:'<div>{Caption}</div>' 
       } 

同意,這是觸摸的不愉快怪癖2.

乾杯,奧列格

+0

驚聞之一。非常感謝你 – indapublic