# Position gameobjects based on canvas size

**URL:** https://phaser.discourse.group/t/position-gameobjects-based-on-canvas-size/8106
**Category:** Phaser 3
**Created:** [November 12, 2020, 7:29pm UTC](https://phaser.discourse.group/t/position-gameobjects-based-on-canvas-size/8106 "2020-11-12T19:29:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dinoq](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/dinoq/32/4313_2.png) [@dinoq](https://phaser.discourse.group/u/dinoq)
#### Post date: [November 12, 2020, 7:29pm UTC](https://phaser.discourse.group/t/position-gameobjects-based-on-canvas-size/8106/1 "2020-11-12T19:29:53Z")

</div>

Hi!  
Is there a way in Phaser 3 to re-position game objects on window resize? (I think another way than manually recalculate all positions and set it)

For example:  
I have FPS label exactly 5px from right edge of canvas and score label at middle of canvas. How to re-position FPS to stay at center, and score label to be 5px from right edge of canvas (of new width)?  
Note: In my example, there are “two” types of re-position (based on proportional position [keep score in middle] and based on position relative to something [keep score 5pc from right edge]).

Thanks!

---

<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: [November 12, 2020, 8:57pm UTC](https://phaser.discourse.group/t/position-gameobjects-based-on-canvas-size/8106/2 "2020-11-12T20:57:29Z")

</div>

If you’re using scale mode `RESIZE` or `NONE` then no, Phaser doesn’t do any repositioning.

---

<div class="post-metadata">

### Author: ![thenonamezz](https://avatars.discourse-cdn.com/v4/letter/t/d07c76/32.png) [@thenonamezz](https://phaser.discourse.group/u/thenonamezz)
#### Post date: [November 13, 2020, 6:58am UTC](https://phaser.discourse.group/t/position-gameobjects-based-on-canvas-size/8106/3 "2020-11-13T06:58:24Z")

</div>

there is also a very good plugin made by rex [https://rexrainbow.github.io/phaser3-rex-notes/docs/site/anchor/](https://rexrainbow.github.io/phaser3-rex-notes/docs/site/anchor/) which places objects based on window size
