-
22 Nov 2012 8:08 AM #1
Dragging absolute positioned items shows a weird DragProxy
Dragging absolute positioned items shows a weird DragProxy
REQUIRED INFORMATION
Ext version tested:- Ext 4.1.2
- Chrome 23
- IE9
- XHTML
- Drag a component that is defined as a DragSource
- See that the green tick does not fit in the proxy element
- Create a container
- Set it's layout to absolute
- Add an item
- Make the item draggable
- Drag it
I would like to see the element being dragged along with my mouse cursor
The result that occurs instead:
Some weird half-height proxy element appears
Test Case:
Look at this fiddle: Drag the blue container.
http://jsfiddle.net/jvisser/mCayU/
HELPFUL INFORMATION
Operating System:- Windows 7
-
23 Nov 2012 7:09 AM #2
Here's a hack I used to at least got something useful while dragging an absolute positioned container:
Code:Ext.dd.DragSource.override({ onInitDrag: function (x, y) { var clone; // Check if the dragged element is static if (!this.el.isStyle('position', 'static')) { // Use the inner HTML for the dragproxy var myEl = new Ext.Element(document.createElement('div')); myEl.setHTML(this.el.dom.innerHTML); clone = myEl.dom.cloneNode(true); } else { clone = this.el.dom.cloneNode(true); clone.id = Ext.id(); } this.proxy.update(clone); this.onStartDrag(x, y); return true; } });
-
27 Nov 2012 2:10 PM #3
Thanks for the report! I have opened a bug in our bug tracker.
You found a bug! We've classified it as
EXTJSIV-7833
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote