# Aspect Ratio Bug?

**URL:** <https://forums.unrealengine.com/t/aspect-ratio-bug/1416608>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, bug-report, Blueprint, question\
**Created:** [November 24, 2023, 8:45am UTC](https://forums.unrealengine.com/t/aspect-ratio-bug/1416608 "2023-11-24T08:45:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_D119](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alex_d119/32/579807_2.png) [@Alex\_D119](https://forums.unrealengine.com/u/Alex_D119)\
**Post date:** [November 24, 2023, 8:45am UTC](https://forums.unrealengine.com/t/aspect-ratio-bug/1416608/1 "2023-11-24T08:45:11Z")

</div>

Just moved on UE5.3 and find some bug I guess. See the video. When I use Constrain Aspect Ratio any Trace by Channel is causes screen shift.

Fortunately it happens only within editor viewport when you have that black borders.

---

<div class="post-metadata">

**Author:** ![KlarkFromDDark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KlarkFromDDark](https://forums.unrealengine.com/u/KlarkFromDDark)\
**Post date:** [March 23, 2024, 4:17pm UTC](https://forums.unrealengine.com/t/aspect-ratio-bug/1416608/2 "2024-03-23T16:17:01Z")

</div>

I just encountered this same behaviour. It offsets the game view in the viewport area, seems like its to the left and up. Any answers or fixes to this?

---

<div class="post-metadata">

**Author:** ![IndisiX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IndisiX](https://forums.unrealengine.com/u/IndisiX)\
**Post date:** [January 17, 2025, 1:12am UTC](https://forums.unrealengine.com/t/aspect-ratio-bug/1416608/3 "2025-01-17T01:12:24Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/a/b/dab9470236d116962d1b974d3da6f270644a233d.png)  
Try this

---

<div class="post-metadata">

**Author:** ![dev\_da](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dev\_da](https://forums.unrealengine.com/u/dev_da)\
**Post date:** [April 16, 2026, 6:37pm UTC](https://forums.unrealengine.com/t/aspect-ratio-bug/1416608/4 "2026-04-16T18:37:28Z")

</div>

The bug is reported Fixed in 5.4, here: [https://issues.unrealengine.com/issue/UE-199454](https://issues.unrealengine.com/issue/UE-199454)

But I still see it in 5.7.3! If you have the Camera set to Contrain Aspect Ratio and you size the PIE viewport so that it is wider (or higher) and then you trace a line from the camera to a cursor (you shoot from the camera), the LineTrace in 3D world works OK, but the DebugDraw draws the line with offset.

Hope Epic can re-visit this, it is annoying.
