2013-08-27 22 views
1

enter image description here我正在一個樣本Sencha Poject,並遇到數據視圖,並希望實施它。Sencha Dataview xtype does not disply - 但可以看到它在DEV工具

長時間打破我的頭後 - 我看到dataview確實存在 - 但沒有顯示。

這裏是德截屏

Ext.define('VideoLibrary.view.VideoView', { 
extend:'Ext.Conta![enter image description here][2]iner', 
xtype:'videoView', 

requires: [ 
    'VideoLibrary.model.Video' 
], 


config:{ 
    layout: 'fit', 

    items: [ 
     { 
      xtype: 'dataview', 
      scrollable: true, 
      inline: true, 
      itemCls:'dataViewElm', 
      itemTpl: '<div>{video_name}</div>', 
      store: 'Videos' 
     } 
    ] 
} 

});

+0

刪除佈局:「適應」,並添加高度:內的數據視圖 – Viswa

+0

不工作:(「100%」 - 謝謝您的好意 – vivianaranha

回答

3

我發現了這個問題。在父容器中 - 我沒有設置佈局。一旦我設定在父容器的佈局 - 它的工作完美

 layout:'card', 
+0

謝謝你,爲你節省我的一天! – heroandtn3