Revert "Compatible with ResizeObserver borderBoxSize in legacy safari"
This reverts commit 6ca702d680
now that Safari-compatibility is updated.
This commit is contained in:
parent
bfb664b9a1
commit
cfa15bbf59
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user