FezVrasta/popper.js

View on GitHub
packages/dom/src/utils/getDocumentRect.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function getDocumentRect has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function getDocumentRect(element: HTMLElement): Rect {
  const html = getDocumentElement(element);
  const scroll = getNodeScroll(element);
  const body = element.ownerDocument.body;

Severity: Minor
Found in packages/dom/src/utils/getDocumentRect.ts - About 1 hr to fix

There are no issues that match your filters.

Category
Status