INNER CODE UNIT · JavaScript

margin

mikelove/bioc-refcard · README_files/libs/quarto-html/quarto.js:28

        const margin = lastBottom - top;
        marginChild.style.marginTop = `${margin}px`;
      }
      const styles = window.getComputedStyle(marginChild);
      const marginTop = parseFloat(styles["marginTop"]);

      console.log({
        top,
        height: marginChild.getBoundingClientRect().height,
        marginTop,
        total: top + marginChild.getBoundingClientRect().height + marginTop,
      });
      lastBottom = top + marginChild.getBoundingClientRect().height + marginTop;
    }
  }
};

window.document.addEventListener("DOMContentLoaded", function (_event) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…