Temporary fix for arena sizing on Chrome
This commit is contained in:
parent
ca4f493b65
commit
4b940942aa
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue