Skip to content

Commit

Permalink
[Treesaver#290] When looking for the top margin of the next sibling w…
Browse files Browse the repository at this point in the history
…e need to skip fallbacks for figures that have already been used.
  • Loading branch information
Andrea Campi committed Oct 16, 2012
1 parent 99e3549 commit 73c799f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layout/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ goog.scope(function() {
// Collapse the bottom margin with our next sibling, if there is one
// TODO: What if this is the last child of a block?
marginBottom = Math.max(block.metrics.marginBottom,
nextSibling ? nextSibling.metrics.marginTop : 0);
nextNotUsed ? nextNotUsed.metrics.marginTop : 0);

// The amount of space our block will take up in this column if inserted
// Height plus whatever our margin ended up being
Expand Down

0 comments on commit 73c799f

Please sign in to comment.