One-com / knockout-dragdrop

A drag and drop binding for Knockout.
BSD 3-Clause "New" or "Revised" License
85 stars 29 forks source link

Fixed draggable clone incorrect size #43

Open GarethBlain opened 7 years ago

GarethBlain commented 7 years ago

Currently if you start dragging a draggable element it adds the copy to the end of the parent which CAN change the size of the original object. Then we got the sizes of the original for the clone and it was wrong before making the clone actually popup (so it doesn't take space in the DOM). Could have been fixed by making it a popup (absolute position etc) before we got the sizes or simpler moved the appendChild command after we grab the sizes of the object. I can't see this causing any other issues.