PDA

View Full Version : [Solved]Drag&Drop with IE: Dragged element with



rmunoz
22 Jul 2007, 12:50 PM
With IE the Drag&Drop classes are not able to calculate the width of the dragged element, and it seems that they asign it a infinite width, as you can see in the attached images. I take the good one on Firefox 2.0 and the bad one on IE 6.0.

I'm using Ext 1.1 Release Candidate 1.

jack.slocum
23 Jul 2007, 1:12 AM
This is a bug in IE. Shrink-wrapping block elements that "hasLayout=true" doesn't work. If you are adding an element to drag proxy that is a block element and triggers hasLayout, you will need to give it a width.

rmunoz
23 Jul 2007, 7:24 AM
Thank you for your answer. I've made a workaround calculating and setting dynamically the width of the element and it's working without problems :).