From 5e0f319382dc5746b0bc9bc4d97b406758331890 Mon Sep 17 00:00:00 2001 From: John Factotum <50942278+johnfactotum@users.noreply.github.com> Date: Sat, 9 Sep 2023 15:49:07 +0800 Subject: [PATCH] FXL: fix scaling for `page-spread-center` --- fixed-layout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fixed-layout.js b/fixed-layout.js index 99393a8..b14ab1d 100644 --- a/fixed-layout.js +++ b/fixed-layout.js @@ -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))