We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
autoCenter: Phaser.Scale.CENTER_BOTH
1 parent b7681ff commit eee10f1Copy full SHA for eee10f1
src/scale/ScaleManager.js
@@ -1208,9 +1208,6 @@ var ScaleManager = new Class({
1208
1209
var bounds = canvas.getBoundingClientRect();
1210
1211
- // var width = parseInt(canvas.style.width, 10) || canvas.width;
1212
- // var height = parseInt(canvas.style.height, 10) || canvas.height;
1213
-
1214
var width = bounds.width;
1215
var height = bounds.height;
1216
@@ -1225,11 +1222,6 @@ var ScaleManager = new Class({
1225
1222
{
1226
1223
offsetX = 0;
1227
1224
}
1228
- else
1229
- {
1230
- offsetX = 0;
1231
- offsetY = 0;
1232
- }
1233
1234
style.marginLeft = offsetX + 'px';
1235
style.marginTop = offsetY + 'px';
0 commit comments