Fix nits
This commit is contained in:
@@ -1129,8 +1129,9 @@ var computeLayout = (function() {
|
||||
node.lastLayout.requestedWidth !== node.layout.width ||
|
||||
node.lastLayout.parentMaxWidth !== parentMaxWidth) {
|
||||
|
||||
if (!node.lastLayout)
|
||||
if (!node.lastLayout) {
|
||||
node.lastLayout = {};
|
||||
}
|
||||
|
||||
node.lastLayout.requestedWidth = node.layout.width;
|
||||
node.lastLayout.requestedHeight = node.layout.height;
|
||||
@@ -1138,11 +1139,13 @@ var computeLayout = (function() {
|
||||
|
||||
layoutNodeImpl(node, parentMaxWidth, parentDirection);
|
||||
|
||||
for (var key in node.layout)
|
||||
for (var key in node.layout) {
|
||||
node.lastLayout[key] = node.layout[key];
|
||||
}
|
||||
} else {
|
||||
for (var key in node.layout)
|
||||
for (var key in node.layout) {
|
||||
node.layout[key] = node.lastLayout[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user