Revert "-- corr"

This reverts commit 5315c47fcd.
This commit is contained in:
2024-11-05 10:55:34 -07:00
parent 5315c47fcd
commit 927295c7ba
276 changed files with 6381 additions and 3001 deletions

View File

@@ -34,7 +34,6 @@ Sys.Extended.UI.DragDropList = function(associatedElement) {
this._originalParent = null;
this._originalNextSibling = null;
this._originalZIndex = null;
this._originalOpacity = null;
this._currentContext = null;
this._data = null;
@@ -94,7 +93,6 @@ Sys.Extended.UI.DragDropList.prototype = {
this._dragVisual.style.width = dragObject.offsetWidth + "px";
this._dragVisual.style.height = dragObject.offsetHeight + "px";
this._originalOpacity = this._dragVisual.style.opacity;
this._dragVisual.style.opacity = "0.4";
this._dragVisual.style.filter = "progid:DXImageTransform.Microsoft.BasicImage(opacity=0.4);";
this._originalZIndex = this._dragVisual.style.zIndex;
@@ -114,6 +112,14 @@ Sys.Extended.UI.DragDropList.prototype = {
dragVisualContainer.appendChild(this._dragVisual);
var newOffset = Sys.Extended.UI.DragDropManager._getInstance().getScrollOffset(dragObject, true);
if(oldOffset.x !== newOffset.x || oldOffset.y !== newOffset.y) {
var diff = Sys.Extended.UI.DragDropManager._getInstance().subtractPoints(oldOffset, newOffset);
var location = Sys.Extended.UI.DragDropManager._getInstance().subtractPoints(currentLocation, diff);
$common.setLocation(dragVisualContainer, location);
}
return dragVisualContainer;
},
@@ -163,19 +169,13 @@ Sys.Extended.UI.DragDropList.prototype = {
if(this._dragMode === Sys.Extended.UI.DragMode.Copy) {
this._floatContainerInstance.removeChild(this._dragVisual);
} else {
// NOTE: There seems to be a cursor issue in Mozilla when setting the opacity to 1. We
// can work around this by setting the opacity to anything lower than 1 instead.
this._dragVisual.style.opacity = "0.999";
//_dragVisual.style.opacity = "1";
this._dragVisual.style.filter = "";
if(this._originalOpacity === "") {
this._dragVisual.style.removeProperty("opacity");
} else {
this._dragVisual.style.opacity = this._originalOpacity;
}
if(this._originalZIndex === "") {
this._dragVisual.style.removeProperty("z-index");
} else {
this._dragVisual.style.zIndex = this._originalZIndex;
}
this._dragVisual.style.zIndex = this._originalZIndex ? this._originalZIndex : 0;
// restore the height/width of the drag visual.
//