Skip to content

Commit

Permalink
feat: init page box on layout
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomura committed Dec 26, 2024
1 parent 1d03281 commit 23346d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/layout/src/steps/resolvePageSizes.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ import getPageSize from '../page/getSize';
export const resolvePageSize = (page) => {
const size = getPageSize(page);
const style = flatten(page.style || {});
const box = page.box || {};

return { ...page, style: { ...style, ...size } };
return { ...page, box, style: { ...style, ...size } };
};

/**
Expand Down

0 comments on commit 23346d4

Please sign in to comment.