diff --git a/packages/utils/dom/calcPlacementTransform.js b/packages/utils/dom/calcPlacementTransform.js index 4ea864581..6f45354f9 100644 --- a/packages/utils/dom/calcPlacementTransform.js +++ b/packages/utils/dom/calcPlacementTransform.js @@ -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