diff --git a/src/Layout.c b/src/Layout.c index 116e4ae3..8c7fa5ec 100644 --- a/src/Layout.c +++ b/src/Layout.c @@ -624,7 +624,7 @@ static void layoutNodeImpl(css_node_t *node, float parentMaxWidth, css_direction // If there's only one element, then it's bigger than the content // and needs its own line i != startLine) { - nonFlexibleChildrenCount --; + nonFlexibleChildrenCount--; alreadyComputedNextLayout = 1; break; } diff --git a/src/Layout.js b/src/Layout.js index b263f66b..1653d705 100755 --- a/src/Layout.js +++ b/src/Layout.js @@ -520,7 +520,7 @@ var computeLayout = (function() { // If there's only one element, then it's bigger than the content // and needs its own line i !== startLine) { - nonFlexibleChildrenCount --; + nonFlexibleChildrenCount--; alreadyComputedNextLayout = 1; break; } diff --git a/src/java/src/com/facebook/csslayout/LayoutEngine.java b/src/java/src/com/facebook/csslayout/LayoutEngine.java index 39d9b8be..25a0e233 100644 --- a/src/java/src/com/facebook/csslayout/LayoutEngine.java +++ b/src/java/src/com/facebook/csslayout/LayoutEngine.java @@ -609,7 +609,7 @@ public class LayoutEngine { // If there's only one element, then it's bigger than the content // and needs its own line i != startLine) { - nonFlexibleChildrenCount --; + nonFlexibleChildrenCount--; alreadyComputedNextLayout = 1; break; }