From 3e158edc98eaf39016b5fa68188e1d96ba2b989e Mon Sep 17 00:00:00 2001 From: Nathanael Anderson Date: Tue, 3 Dec 2013 14:21:29 -0600 Subject: [PATCH] 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. --- lib/line_wrapper.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/line_wrapper.coffee b/lib/line_wrapper.coffee index 887f1d2..f94423b 100644 --- a/lib/line_wrapper.coffee +++ b/lib/line_wrapper.coffee @@ -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