PDA

View Full Version : AutoScroll and Height settings



nak1
31 Jul 2009, 6:12 AM
Guys,

So I'm using Ext 3.0, but I'm not sure this is a 3.0 specific issue. I've got a DataView in a Panel, which is in a Window. I want to have the DataView scroll automatically, without having to set the height to a number. I've tried several combinations of configuration, but with no luck. Could anyone point me to a resource or explain to me why I need to set the height, rather then have it set to autoHeight?



{
xtype:'button',
id: 'btnAddPunchList',
text: 'Punchlist',
icon: '/images/icons/silk/text_list_bullets.png',
listeners: {
click: function(){
console.log(portal.dsTask);
var temp = new Ext.Window({
title:'<b>Demo</b>',
width:750,
height:500,
modal:true,
items:[
{ xtype:'panel',
layout:'auto',
autoScroll:true,
tbar:[ {
xtype:'button',
text: 'Print',
icon: '/images/icons/silk/printer.png'
}],
items:[{
xtype:'dataview',
bodyStyle: 'border: 0',
autoScroll:true,
//width:1000,
height:440,
store: portal.dsTask,
loadingText: 'Loading Tasks...',
tpl: template.demo,
multiSelect: false,
overCls: 'thumb-wrap-over',
style:'cursor:default',
selectedClass: 'thumb-selected',
itemSelector: 'div.thumb-wrap',
emptyText: 'No Tasks Found'
}]
}]
})
temp.show();
}
}
}

Animal
31 Jul 2009, 6:19 AM
Paging Condor!

Did you put this in the FAQ?

As Ian Curtis said: "getting frequent now..."