Showing 1 of 1 total issue
Function getRelativePosition
has 99 lines of code (exceeds 45 allowed). Consider refactoring. Open
Open
Positionizer.getRelativePosition = function(fixedEl, floatingEl, placement, appendToBody, distX, distY) {
const fixedElPos = appendToBody ? __internal.getOffset(fixedEl, false) : Positionizer.getPosition(fixedEl, false);
const floatingElStyles = __internal.getAllStyles(floatingEl);
const bcr = floatingEl.getBoundingClientRect();
var sp = placement.split("-");