Skip to content

Commit eee10f1

Browse files
committed
Reverted an incorrect change made to the Scale Manager that prevented the autoCenter: Phaser.Scale.CENTER_BOTH from working.
1 parent b7681ff commit eee10f1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/scale/ScaleManager.js

-8
Original file line numberDiff line numberDiff line change
@@ -1208,9 +1208,6 @@ var ScaleManager = new Class({
12081208

12091209
var bounds = canvas.getBoundingClientRect();
12101210

1211-
// var width = parseInt(canvas.style.width, 10) || canvas.width;
1212-
// var height = parseInt(canvas.style.height, 10) || canvas.height;
1213-
12141211
var width = bounds.width;
12151212
var height = bounds.height;
12161213

@@ -1225,11 +1222,6 @@ var ScaleManager = new Class({
12251222
{
12261223
offsetX = 0;
12271224
}
1228-
else
1229-
{
1230-
offsetX = 0;
1231-
offsetY = 0;
1232-
}
12331225

12341226
style.marginLeft = offsetX + 'px';
12351227
style.marginTop = offsetY + 'px';

0 commit comments

Comments
 (0)