mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 11:29:14 -04:00
FXL: fix scaling for page-spread-center
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@ export class FixedLayout extends HTMLElement {
|
|||||||
const blankWidth = left.width ?? right.width
|
const blankWidth = left.width ?? right.width
|
||||||
const blankHeight = left.height ?? right.height
|
const blankHeight = left.height ?? right.height
|
||||||
|
|
||||||
const scale = portrait
|
const scale = portrait || this.#center
|
||||||
? Math.min(
|
? Math.min(
|
||||||
width / (target.width ?? blankWidth),
|
width / (target.width ?? blankWidth),
|
||||||
height / (target.height ?? blankHeight))
|
height / (target.height ?? blankHeight))
|
||||||
|
|||||||
Reference in New Issue
Block a user