# Phaser Resize issue?

**URL:** <https://phaser.discourse.group/t/phaser-resize-issue/4716>\
**Category:** Phaser 3\
**Created:** [December 27, 2019, 3:29pm UTC](https://phaser.discourse.group/t/phaser-resize-issue/4716 "2019-12-27T15:29:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thundros](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/thundros/32/2057_2.png) [@Thundros](https://phaser.discourse.group/u/Thundros)\
**Post date:** [December 27, 2019, 3:29pm UTC](https://phaser.discourse.group/t/phaser-resize-issue/4716/1 "2019-12-27T15:29:52Z")

</div>

so i’m trying to resize my game with scale manager to take up all of the screen all the time even when resized, problem is when i resize, i get black borders. and no before asked, i do NOT have any css & / or javascript resizing.

How do I fix Scale Manager to STOP doing THIS when resized :

 ![resizeglitch1](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/8/8f7631992868b354a27fb0d45d2ceffa93c71dc7.png)

& START doing THIS when resized :

 ![resizeglitch2](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/8/813801d5edabbf0b38aaa9662f93c9088bd4e010.png)

?

This is what I have in my config :

```javascript
this.__PHASER_TYPE = ( Phaser.AUTO ); // Default :: { Phaser.AUTO } // Sets Phaser's type
this.__PHASER_PARENT = ( 'game-container' );
this.__PHASER_SCALE_MODE = ( Phaser.Scale.FIT ); // Default :: { Phaser.NONE }
this.__PHASER_SCALE_AUTOCENTER = ( Phaser.Scale.CENTER_BOTH );
this.__config = {
    scale : {

        mode : this.__PHASER_SCALE_MODE, 
        autoCenter : this.__PHASER_SCALE_AUTOCENTER, 

    }, 
}

```

Here is a video of what happens when I try to scale the console window using `PHASER.SCALE.RESIZE` instead of `PHASER.SCALE.FIT` :

[https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/b/bdd591bda77102486d17c042f71a7fa599d170b5.mp4](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/b/bdd591bda77102486d17c042f71a7fa599d170b5.mp4)

Here is the new config :

```javascript
this.__PHASER_TYPE = ( Phaser.AUTO ); // Default :: { Phaser.AUTO } // Sets Phaser's type
this.__PHASER_PARENT = ( 'game-container' );
this.__PHASER_SCALE_MODE = ( Phaser.Scale.RESIZE ); // Default :: { Phaser.NONE }
this.__PHASER_SCALE_AUTOCENTER = ( Phaser.Scale.CENTER_BOTH );
this.__config = {
    scale : {

        mode : this.__PHASER_SCALE_MODE, 
        autoCenter : this.__PHASER_SCALE_AUTOCENTER, 

    }, 
}

```

Any help as always, is GREATLY appreciated! 🙂

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [December 31, 2019, 9:43pm UTC](https://phaser.discourse.group/t/phaser-resize-issue/4716/2 "2019-12-31T21:43:36Z")

</div>

That’s correct for [FIT](https://photonstorm.github.io/phaser3-docs/Phaser.Scale.ScaleModes.html#.FIT). It sounds like you want to use [RESIZE](https://photonstorm.github.io/phaser3-docs/Phaser.Scale.ScaleModes.html#.RESIZE) instead of FIT.

Is the problem with RESIZE that the game content wiggles around during resizing? You can try removing `scale.autoCenter`.

---

<div class="post-metadata">

**Author:** ![Thundros](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/thundros/32/2057_2.png) [@Thundros](https://phaser.discourse.group/u/Thundros)\
**Post date:** [January 4, 2020, 6:49pm UTC](https://phaser.discourse.group/t/phaser-resize-issue/4716/3 "2020-01-04T18:49:38Z")

</div>

@samme : yes
