Fix wrong variable name causing style.width to be constantly re-assigned

This commit is contained in:
Antonio Scandurra
2016-10-05 16:31:58 +02:00
parent 8280fa9540
commit 3147a2ce3d

View File

@@ -61,7 +61,7 @@ module.exports = class LinesTileComponent {
if (this.newState.width !== this.oldState.width) {
this.domNode.style.width = this.newState.width + 'px'
this.oldTileState.width = this.newTileState.width
this.oldState.width = this.newState.width
}
if (this.newTileState.top !== this.oldTileState.top || this.newTileState.left !== this.oldTileState.left) {