refactor(placeable): remove useless code

This commit is contained in:
songwanli2025@163.com 2020-01-13 18:15:51 +08:00
parent 7da195d2df
commit 96a65b14ff

View File

@ -66,12 +66,6 @@ export function getAdjustedPlacementOfTrackingElement (placement = 'bottom-start
adjustedPosition = oppositePosition[position]
}
}
// if (
// (trackedRect[adjacentPositionDirection] + trackedRect[lengthToCompare[adjacentPositionDirection]] <= trackingRect[lengthToCompare[adjacentPositionDirection]] &&
// trackingRect[lengthToCompare[adjacentPositionDirection]] > trackedRect[lengthToCompare[adjacentPositionDirection]]) ||
// (trackedRect[oppositeDirection[adjacentPositionDirection]] < 0 && trackedRect[adjacentPositionDirection] > 0)) {
// adjustedPosition = oppositePosition[position]
// }
}
if (trackedRect[direction] >= trackingRect[lengthToCompare[direction]]) {
return adjustedPosition ? (direction + '-' + adjustedPosition) : direction