Permalink
Browse files

fixed a packing bug.

  • Loading branch information...
1 parent ab3fda7 commit 1cd78242b9a7dcfc602154789b60e19f4ec500c8 @michaelforrest committed Sep 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 tidy/mvc/view/PackableView.as
@@ -71,12 +71,12 @@ package tidy.mvc.view {
moveElement(element,nextX,nextY);
nextY += element.height + spacing;
}else{
- maxRowHeight = Math.max(maxRowHeight, element.height);
if(maxWidth && nextX + element.width > maxWidth) {
nextY += maxRowHeight + spacing;
nextX = paddingLeft;
maxRowHeight = 0;
}
+ maxRowHeight = Math.max(maxRowHeight, element.height);
nextX += offset;
moveElement(element,nextX,nextY);
nextX = element.x + element.width + spacing;

0 comments on commit 1cd7824

Please sign in to comment.