mirror of
https://github.com/foliojs/pdfkit.git
synced 2025-12-08 20:15:54 +00:00
Fixes the invalid calculation of page size in Line Wrapper.
@startY + options.height will actually = the full remainder of the page, by subrtacting out a line of text it just wrapped a line of text too early as the last line of text could never fit.
This commit is contained in:
parent
48e918803d
commit
3e158edc98
@ -33,7 +33,7 @@ class LineWrapper extends EventEmitter
|
||||
@column = 1
|
||||
|
||||
# calculate the maximum Y position the text can appear at
|
||||
@maxY = @startY + options.height - @document.currentLineHeight()
|
||||
@maxY = @startY + options.height
|
||||
|
||||
# make sure we're actually on the page
|
||||
# and that the first line of is never by
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user