Fixing linenumbers on page break (fixes #3273)

This commit is contained in:
FinnStutzenstein 2017-06-01 11:53:49 +02:00 committed by Emanuel Schütze
parent 59a21c6cbc
commit a83cd5b947
2 changed files with 22 additions and 11 deletions

View File

@ -51,9 +51,9 @@ Core:
General:
- Switched from npm to Yarn [#3188].
- Several bugfixes and minor improvements.
- Bugfixes for PDF creation [#3227, #3251]
- Improved performance for pdf generation significantly (by upgrading
to pdfmake 0.1.29) [#3278].
- Bugfixes for PDF creation [#3227, #3251, #3279]
Version 2.1.1 (2017-04-05)

View File

@ -732,12 +732,23 @@ angular.module('OpenSlidesApp.core.pdf', [])
}
var lineNumberObject = {
width: 20,
text: [
{
text: ' ', // Add a blank with the normal font size here, so in rare cases the text
// is rendered on the next page and the linenumber on the previous page.
fontSize: 10,
decoration: '',
},
{
text: lineNumberOutline,
color: "gray",
fontSize: 8,
margin: [0, 2, 0, 0]
decoration: '',
},
col = {
],
margin: [0, 2, 0, 0]
};
var col = {
columns: [
lineNumberObject,
]