2011-11-25 14 views
0

リストの下にパネルを配置したいが、パネルが常にリストの上に表示されているようだ。私はレコードや20がないかもしれないので、高さが変わるので、リストに高さを設定したくない。下のパネルを表示するsencha touch

私は単に私のパネル私のリストの下に表示したい。また、私はスクロールを無効にしています。

答えて

0

私はデータビューでパネルを使用していたはずです。

var tpl = new Ext.XTemplate(
    '<tpl for=".">', 
     '<div class="photosLocation">{pic}{name}', 
     '</div>', 
    '</tpl>' 
); 

var panel = new Ext.Panel({ 
    width:535, 
    autoHeight:true, 
    layout:'hbox', 
    title:'Simple DataView', 

    listeners: { 
     click: { 
      element: 'el', //bind to the underlying el property on the panel 
      fn: function(){ alert('click'); } 
     } 
    }, 
    items: new Ext.DataView({ 
     store: Rad.stores.deals, 
     tpl: tpl, 
     autoHeight:true, 
     itemSelector:'div.photosLocation', 

    }) 
});