PHP Code:
createDataView: function () {
var me = this;
return {
xtype: 'container',
width: 600,
bodyBorder:false,
style: { position: 'absolute'}
x: 0, y: 0,
items: [{
xtype: 'dataview',
flex: 1,
overItemCls: 'x-view-over',
trackOver: true,
loadMask: false,
itemSelector: me.shortcutItemSelector,
store: me.shortcuts,
tpl: new Ext.XTemplate(me.shortcutTpl)
}]
};
}
The Container's width is 100%..

Originally Posted by
skirtle
I think you'll have to wrap the DataView in an extra level of container. Give the container a vbox layout and the DataView a flex of 1 and a width of 600 and it should look the way you want.
Seems a bit odd to give the wallpaper and the DataView different sizes though.