fix baseline cross multiple fragments issue

This commit is contained in:
daboe01 committed 2015-06-28 21:19:33 +02:00
1 parent 5bd5e9000e
commit e5ca98a1d3
1 file changed
+1 -1
+1 -1
View File
@@ -929,7 +929,7 @@ _oncontextmenuhandler = function () { return false; };
for (var i = 0; i < len - 1; i++) // extend the width of all but the last one
{
if (rectArray[i].origin.y == rectArray[i + 1].origin.y)
if (FLOOR(CGRectGetMaxY(rectArray[i])) == FLOOR(CGRectGetMaxY(rectArray[i + 1])))
continue;
rectArray[i].size.width = containerSize.width - rectArray[i].origin.x;