1
0
Fork 0

Temporary fix for arena sizing on Chrome

This commit is contained in:
Michaël Lemaire 2015-01-22 01:00:00 +01:00 committed by Michaël Lemaire
parent ca4f493b65
commit 4b940942aa

View file

@ -24,8 +24,8 @@ module SpaceTac.View {
super(battleview.game);
var background = new Phaser.Button(battleview.game, 0, 0, "ui-arena-background");
var expected_width = this.stage.width - 252;
var expected_height = this.stage.height - 100;
var expected_width = 1280 - 252;
var expected_height = 720 - 100;
background.scale.set(expected_width / background.width, expected_height / background.height);
this.background = background;