Revert "Compatible with ResizeObserver borderBoxSize in legacy safari"

This reverts commit 6ca702d680 now that Safari-compatibility is updated.
This commit is contained in:
Jonas Jenwald 2023-04-29 08:48:06 +02:00
parent bfb664b9a1
commit cfa15bbf59

View File

@ -2180,14 +2180,7 @@ class PDFViewer {
for (const entry of entries) {
if (entry.target === this.container) {
this.#updateContainerHeightCss(
// Safari doesn't support `borderBoxSize` until version 15.4.
Math.floor(
typeof PDFJSDev !== "undefined" &&
!PDFJSDev.test("SKIP_BABEL") &&
!entry.borderBoxSize?.length
? entry.contentRect.height
: entry.borderBoxSize[0].blockSize
)
Math.floor(entry.borderBoxSize[0].blockSize)
);
this.#containerTopLeft = null;
break;