PDA

View Full Version : DragZone turn off fade effect



inf3rno
21 Jan 2011, 3:56 PM
Hi!

How can I turn off the fade effect on dragged element?
It calls setStyle("backgroundColor","rgb(NaN,NaN,NaN)") resulting error message in msie.

aconran
21 Jan 2011, 4:07 PM
Hrm you should check out what the stack trace is. Sounds like its the highlight() of the DragZone.

Are you setting an invalid hlColor configuration to the DragZone?

You could also set


Ext.enableFx = false;

inf3rno
21 Jan 2011, 4:15 PM
No, maybe the dragged area has no background-color (or don't know), and that causes the problem.
I solved this with overwriting the afterRepair method:


new Ext.dd.DragZone(this.body.dom,
{
afterRepair : function()
{
this.dragging = false;
}
});