mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-12-05 03:55:06 +01:00
fix: position of background and content on y axis
This commit is contained in:
@@ -90,7 +90,7 @@ export const exportToCanvas = async (
|
||||
const onlyExportingSingleFrame = isOnlyExportingSingleFrame(elements);
|
||||
|
||||
let scrollXAdjustment = 0;
|
||||
const scrollYAdjustment = 0;
|
||||
let scrollYAdjustment = 0;
|
||||
|
||||
if (
|
||||
exportWithFancyBackground &&
|
||||
@@ -114,6 +114,9 @@ export const exportToCanvas = async (
|
||||
|
||||
scrollXAdjustment =
|
||||
(width - contentSize.width - (padding[1] + padding[3])) / 2;
|
||||
|
||||
scrollYAdjustment =
|
||||
(height - contentSize.height - (padding[0] + padding[2])) / 2;
|
||||
}
|
||||
|
||||
renderStaticScene({
|
||||
|
||||
Reference in New Issue
Block a user