@file-viewer/docx 0.3.35 → 0.3.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10020,6 +10020,8 @@
10020
10020
  const rect = child.getBoundingClientRect();
10021
10021
  bottom = Math.max(bottom, rect.bottom);
10022
10022
  if (child.tagName.toLowerCase() == "article") {
10023
+ if (rect.bottom > bodyBottom + tolerance)
10024
+ return true;
10023
10025
  for (const block of Array.from(child.children)) {
10024
10026
  const blockRect = block.getBoundingClientRect();
10025
10027
  bottom = Math.max(bottom, blockRect.bottom);
@@ -10204,7 +10206,7 @@
10204
10206
  getPageBodyBottom(page) {
10205
10207
  const lists = Array.from(page.children).filter(node => node.dataset.docxNoteList);
10206
10208
  const view = page.ownerDocument?.defaultView;
10207
- if (!lists.length || !view)
10209
+ if (!view)
10208
10210
  return page.getBoundingClientRect().bottom;
10209
10211
  let bottom = this.getPageNoteBottom(page);
10210
10212
  for (const list of lists) {