PDA

View Full Version : viewport rendering



wp.joju
12 Feb 2010, 2:33 AM
i have a viewport with a panel inside it, inside the panel's center region is a dataview... the problem is if i add drag and drop to the dataview... you can drag the item out of the viewport... the viewport is getting out of place




var clientlayout = new Ext.Viewport({
layout:'fit',
items: extwinfilelist
});
clientlayout.render(Ext.getBody());

conorarmstrong
12 Feb 2010, 2:37 AM
can youi provide more code and possibly a screenshot of the problem?

wp.joju
12 Feb 2010, 2:43 AM
attached is a screenshot

- dataview is contained within red box,
- viewport area is within green box
- while the dragged item is way out of the viewport

conorarmstrong
12 Feb 2010, 3:09 AM
and some code? the code you have given tells nothing.

wp.joju
12 Feb 2010, 3:11 AM
this is the panel inside the viewport



var extwinfilelist = new Ext.Panel({
autoWidth: true,
id: 'extwinfilelist',
width: 350,
height: 250,
header: false,
region:'center',
layout:'border',
//modal: true,
//closable: false,
tbar:[.............],
items: [ {
id:'exttxtCurDir',
xtype:'textfield',
fieldLabel:'location',
length:1000,
enableKeyEvents:true,
region:'north',
...........
},
{ autoScroll:true, xtype:'panel', region:'center', items: extdvfilelist},
{
xtype:'panel',
header:false,
split:true,
region: 'east',
width: 150,
autoScroll:true,
minSize: 100,
maxSize: 250,
items: extpnlfiledetails
},comboxWithTree
]
});



the DDView part is shown in bold

conorarmstrong
12 Feb 2010, 3:14 AM
We need more code! What context is this snippet in? Where is your DnD handler? We're not magicians here!

wp.joju
12 Feb 2010, 3:15 AM
i am using Ext.ux.DDView

wp.joju
12 Feb 2010, 3:17 AM
var extdvfilelist = new Ext.ux.DDView({
id: 'extdvfilelist',
store: extstorefilelist,
tpl: tpl,
multiSelect: true,
overClass:'x-view-over',
itemSelector:'div.thumb-wrap',
emptyText: '',
autoWidth:false,
dragGroup:'here',
dropGroup:'here',
listeners: {...........}
})

wp.joju
15 Feb 2010, 1:50 AM
anyone encountered this problem before?