mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
refactor(placeable): remove useless code
This commit is contained in:
parent
7da195d2df
commit
96a65b14ff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user