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.div = div;
|
||||||
|
|
||||||
this.#setDimensions();
|
this.#setDimensions();
|
||||||
|
|
||||||
container?.append(div);
|
container?.append(div);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
@ -230,10 +229,12 @@ class PDFPageView {
|
|||||||
|
|
||||||
#setDimensions() {
|
#setDimensions() {
|
||||||
const { viewport } = this;
|
const { viewport } = this;
|
||||||
if (this.#previousRotation === viewport.rotation) {
|
if (this.pdfPage) {
|
||||||
return;
|
if (this.#previousRotation === viewport.rotation) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.#previousRotation = viewport.rotation;
|
||||||
}
|
}
|
||||||
this.#previousRotation = viewport.rotation;
|
|
||||||
|
|
||||||
setLayerDimensions(
|
setLayerDimensions(
|
||||||
this.div,
|
this.div,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user