Sylvain59650/positionizer

View on GitHub

Showing 1 of 1 total issue

Function getRelativePosition has 99 lines of code (exceeds 45 allowed). Consider refactoring.
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("-");
Severity: Major
Found in sources/positionizer.js - About 3 hrs to fix
    Severity
    Category
    Status
    Source
    Language