# Distortion when screen is resized \[SOLVED\]

**URL:** <https://forum.playcanvas.com/t/distortion-when-screen-is-resized-solved/7299>\
**Category:** Help & Support\
**Created:** [June 15, 2018, 7:50pm UTC](https://forum.playcanvas.com/t/distortion-when-screen-is-resized-solved/7299 "2018-06-15T19:50:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![derickwelman](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/derickwelman/32/7121_2.png) [@derickwelman](https://forum.playcanvas.com/u/derickwelman)\
**Post date:** [June 15, 2018, 7:50pm UTC](https://forum.playcanvas.com/t/distortion-when-screen-is-resized-solved/7299/1 "2018-06-15T19:50:25Z")

</div>

Good afternoon guys,  
I got a problem with the proportions of my model when screen is resized. Every Time that this occurs, the model stretches and when i do a simple click on the screen, it came back to normal.  
 ![com-video-to-gif](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/2X/1/1a476796175ab7464e50cf04a79519e2099c92b7.gif)  
The image above show what is happening.

Any idea of a solution?

---

<div class="post-metadata">

**Author:** ![dave](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/dave/32/4558_2.png) [@dave](https://forum.playcanvas.com/u/dave)\
**Post date:** [June 16, 2018, 12:14am UTC](https://forum.playcanvas.com/t/distortion-when-screen-is-resized-solved/7299/2 "2018-06-16T00:14:05Z")

</div>

Are you rendering every frame or using [autoRender = false](https://developer.playcanvas.com/en/api/pc.Application.html#autoRender)?

---

<div class="post-metadata">

**Author:** ![derickwelman](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/derickwelman/32/7121_2.png) [@derickwelman](https://forum.playcanvas.com/u/derickwelman)\
**Post date:** [June 18, 2018, 2:42pm UTC](https://forum.playcanvas.com/t/distortion-when-screen-is-resized-solved/7299/3 "2018-06-18T14:42:59Z")

</div>

Good morning,

I’ve tried the both ways (`autoRender` as true and false). On both cases the problem above still happens, but with `autoRender=false` i need to call `app.render()` every frame and that is not what i want.

---

<div class="post-metadata">

**Author:** ![derickwelman](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/derickwelman/32/7121_2.png) [@derickwelman](https://forum.playcanvas.com/u/derickwelman)\
**Post date:** [June 19, 2018, 1:15pm UTC](https://forum.playcanvas.com/t/distortion-when-screen-is-resized-solved/7299/4 "2018-06-19T13:15:54Z")

</div>

Today i found a solution!!

I don’t know why, but whenever I resize the screen, the camera attribute `aspectRatioMode` changes to 1 (`pc.ASPECT_MANUAL`). So I solved the problem by adding the code `camera.aspectRatioMode = pc.ASPECT_AUTO` on the resize screen event.

Thanks for the help!
