#80024DragDrop.js - show dragged element in front of every element
Description
Please extend the configuration with these two parameters:
appendTo: $(document.body),
helper: 'clone',
so the dragged element is displayed in front of every element during dragging and can be used with third party extension which creates multi column in elements (e.g. flux)
Here the changed code for typo3/sysext/backend/Resources/Public/JavaScript/LayoutModule/DragDrop.js (starting at line 43)
Insert appendTo and helper in the $(DragDrop.contentIdentifier).draggable configuration:
DragDrop.initialize = function () {
$(DragDrop.contentIdentifier).draggable({
handle: this.dragHeaderIdentifier,
scope: 'tt_content',
cursor: 'move',
distance: 20,
addClasses: 'active-drag',
revert: 'invalid',
zIndex: 100,
appendTo: $(document.body),
helper: 'clone',
start: function (evt, ui) {
DragDrop.onDragStart($(this));
},
stop: function (evt, ui) {
DragDrop.onDragStop($(this));
}
});Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.