Merge pull request #15872 from Snuffleupagus/PDFPageView-setDimensions-regression
[Regression] Ensure that documents with varying page sizes are initialized correctly (PR 15812 follow-up)
This commit is contained in:
commit
ec6ad91bb7
@ -196,7 +196,6 @@ class PDFPageView {
|
||||
this.div = div;
|
||||
|
||||
this.#setDimensions();
|
||||
|
||||
container?.append(div);
|
||||
|
||||
if (
|
||||
@ -230,10 +229,12 @@ class PDFPageView {
|
||||
|
||||
#setDimensions() {
|
||||
const { viewport } = this;
|
||||
if (this.#previousRotation === viewport.rotation) {
|
||||
return;
|
||||
if (this.pdfPage) {
|
||||
if (this.#previousRotation === viewport.rotation) {
|
||||
return;
|
||||
}
|
||||
this.#previousRotation = viewport.rotation;
|
||||
}
|
||||
this.#previousRotation = viewport.rotation;
|
||||
|
||||
setLayerDimensions(
|
||||
this.div,
|
||||
|
Loading…
x
Reference in New Issue
Block a user