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:
Nathanael Anderson 2013-12-03 14:21:29 -06:00
parent 48e918803d
commit 3e158edc98

View File

@ -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