Skip to content

Commit

Permalink
Merge branch 'v_dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
prepare committed Sep 12, 2015
2 parents b799662 + e4ed4cd commit 24366ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Source/LayoutFarm.HtmlRenderer/2_Boxes/0_Root/HtmlContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ public void PerformLayout(LayoutVisitor lay)

CssBox prevParent = null;
//TODO: review here again
float extraAdjust = 0; //temp fixed
float extraAdjustX = 0; //temp fixed


for (int n = 0; n < floatBoxCount; ++n)
{
Expand All @@ -163,10 +164,13 @@ public void PerformLayout(LayoutVisitor lay)
if (n > 0)
{
CssBox prevFloatChild = floatingContext.GetBox(n - 1);
extraAdjust = prevFloatChild.ActualMarginRight + box.ActualMarginLeft;
//TODO: review here again
//temp fix
extraAdjustX = prevFloatChild.ActualMarginRight + box.ActualMarginLeft;
ny += box.ActualMarginTop;
}
}
box.SetLocation(nx + extraAdjust, ny);
box.SetLocation(nx + extraAdjustX, ny);
prevParent = box.ParentBox;
floatingOwner.AppendToAbsoluteLayer(box);
}
Expand Down
Binary file modified readme_imgs/s02_nearly_acid1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 24366ad

Please sign in to comment.