diff options
Diffstat (limited to 'ui/HorizontalBox.js')
-rw-r--r-- | ui/HorizontalBox.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/HorizontalBox.js b/ui/HorizontalBox.js index fd43f8e..f92bf10 100644 --- a/ui/HorizontalBox.js +++ b/ui/HorizontalBox.js @@ -5,7 +5,7 @@ module.exports = class HorizontalBox extends DisplayElement { fixLayout() { let nextX = 0 - for (let child of this.children) { + for (const child of this.children) { child.x = nextX nextX = child.right + 1 } |