packages/react-components/src/Popup/utils.ts
Function getPosition
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export function getPosition (triggerPosition: ElementPosition, positionX: HorizontalPosition, positionY: VerticalPosition, windowPosition: ElementPosition, scrollY: number, windowSize: WindowSize): Coords {
Function fitsInView
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function fitsInView (positionY: VerticalPosition, trigger: ElementPosition, popupWindowHeight: number, windowSize: WindowSize, scrollY: number): boolean {