mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
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
1 changed files with 1 additions and 8 deletions
|
@ -2180,14 +2180,7 @@ class PDFViewer {
|
||||||
for (const entry of entries) {
|
for (const entry of entries) {
|
||||||
if (entry.target === this.container) {
|
if (entry.target === this.container) {
|
||||||
this.#updateContainerHeightCss(
|
this.#updateContainerHeightCss(
|
||||||
// Safari doesn't support `borderBoxSize` until version 15.4.
|
Math.floor(entry.borderBoxSize[0].blockSize)
|
||||||
Math.floor(
|
|
||||||
typeof PDFJSDev !== "undefined" &&
|
|
||||||
!PDFJSDev.test("SKIP_BABEL") &&
|
|
||||||
!entry.borderBoxSize?.length
|
|
||||||
? entry.contentRect.height
|
|
||||||
: entry.borderBoxSize[0].blockSize
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
this.#containerTopLeft = null;
|
this.#containerTopLeft = null;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue