Permalink
Browse files

[#290] When looking for the top margin of the next sibling we need to…

… skip fallbacks for figures that have already been used.
  • Loading branch information...
1 parent 99e3549 commit 73c799f1ece16941d7b5d1963a7d5c82eedefcf6 @andreacampi andreacampi committed Oct 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/layout/page.js
View
@@ -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

0 comments on commit 73c799f

Please sign in to comment.