PDA

View Full Version : How do I make a window draggable by its entire body as opposed to only header?



abcdef
2 Dec 2011, 10:48 PM
How do I make a window draggable by its entire body as opposed to only header?

I have a window that has preventHeader: true. So no header. I would rather like the window to be dragged using any part of the window (this window has a tbar and a bbar - both toolbars could be used as handles including the body itself).

Is this possible? Is there any other reasonable solution to this problem?

Please help!

mitchellsimoens
5 Dec 2011, 6:38 AM
Ext.window.Window uses Ext.util.ComponentDragger if the window has a header. Since you do not, you can use the Ext.dd.* classes to enable dragging on the window's el.