Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
insulate from change order issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Dec 17, 2013
1 parent 6fa0216 commit 23e9dac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/arrange-game-tile.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,12 @@
this.$.style.textContent += '.tile { width: ' + m.width +
'%;\n height: ' + m.height + '%;\n}';
}
this.updatePosition();
},
updatePosition: function() {
if (!this.metrics) {
return;
}
this.position = {
left: this.tile.col * this.metrics.left,
top: this.tile.row * this.metrics.top
Expand Down

0 comments on commit 23e9dac

Please sign in to comment.