Skip to content

Commit

Permalink
Fix table not breaking on the next page after element with absolute p…
Browse files Browse the repository at this point in the history
…ostion.
  • Loading branch information
zaro committed Mar 10, 2015
1 parent 8fcc3cf commit 351995c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/documentContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ DocumentContext.prototype.beginDetachedBlock = function() {
availableHeight: this.availableHeight,
availableWidth: this.availableWidth,
page: this.page,
bottomMost: { y: this.y, page: this.page },
endingCell: this.endingCell,
lastColumnWidth: this.lastColumnWidth
});
Expand All @@ -152,12 +151,12 @@ DocumentContext.prototype.beginDetachedBlock = function() {
DocumentContext.prototype.endDetachedBlock = function() {
var saved = this.snapshots.pop();

this.endingCell = null;
this.x = saved.x;
this.y = saved.bottomMost.y;
this.page = saved.bottomMost.page;
this.y = saved.y;
this.availableWidth = saved.availableWidth;
this.availableHeight = saved.bottomMost.availableHeight;
this.availableHeight = saved.availableHeight;
this.page = saved.page;
this.endingCell = saved.endingCell;
this.lastColumnWidth = saved.lastColumnWidth;
};

Expand Down

0 comments on commit 351995c

Please sign in to comment.