Skip to content

Commit

Permalink
Merge pull request #1122 from RodriSanchez1/feature/exportFixedBoardPDF
Browse files Browse the repository at this point in the history
Small fix PDF export
  • Loading branch information
RodriSanchez1 authored Jan 11, 2022
2 parents fc11b67 + 981e0c0 commit cf9ab5e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/components/Settings/Export/Export.helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,19 +492,20 @@ const addTileToGrid = async (
width: '100'
};

if (7 === columns || columns === 8) {
imageData.width = '90';
} else if (9 === columns || columns === 10 || rows === 5) {
imageData.width = '70';
} else if (11 === columns || columns === 12 || rows >= 6) {
imageData.width = '59';
}

const labelData = {
text: label,
alignment: 'center'
};

if (11 === columns || columns === 12 || rows >= 6) {
imageData.width = '59';
labelData.fontSize = 9;
} else if (9 === columns || columns === 10 || rows === 5) {
imageData.width = '70';
} else if (7 === columns || columns === 8) {
imageData.width = '90';
}

const displaySettings = getDisplaySettings();
let value1,
value2 = {};
Expand Down Expand Up @@ -745,6 +746,7 @@ export async function pdfExportAdapter(boards = [], intl) {
const docDefinition = {
pageSize: 'A4',
pageOrientation: 'landscape',
pageMargins: [20, 20],
content: []
};
const lastBoardIndex = boards.length - 1;
Expand Down

0 comments on commit cf9ab5e

Please sign in to comment.