FXL: fix scaling for page-spread-center

This commit is contained in:
John Factotum
2023-09-09 15:49:07 +08:00
parent 0cebcb93c4
commit 5e0f319382
+1 -1
View File
@@ -100,7 +100,7 @@ export class FixedLayout extends HTMLElement {
const blankWidth = left.width ?? right.width
const blankHeight = left.height ?? right.height
const scale = portrait
const scale = portrait || this.#center
? Math.min(
width / (target.width ?? blankWidth),
height / (target.height ?? blankHeight))