# \[BUG\] New ViewPort size increases by (2x8) every time you press play

**URL:** <https://forums.unrealengine.com/t/bug-new-viewport-size-increases-by-2x8-every-time-you-press-play/476564>\
**Category:** Pipeline & Plugins\
**Tags:** play-in-editor, viewport, unreal-engine, bug-report, editor, UE4-26, question\
**Created:** [December 30, 2020, 5:02am UTC](https://forums.unrealengine.com/t/bug-new-viewport-size-increases-by-2x8-every-time-you-press-play/476564 "2020-12-30T05:02:46Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![ANEWGALAXI](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/anewgalaxi/32/598282_2.png) [@ANEWGALAXI](https://forums.unrealengine.com/u/ANEWGALAXI)\
**Post date:** [December 30, 2020, 5:02am UTC](https://forums.unrealengine.com/t/bug-new-viewport-size-increases-by-2x8-every-time-you-press-play/476564/1 "2020-12-30T05:02:46Z")

</div>

The New Editor Window (PIE) ViewPort size increases by (2x8) _every_ time you press play, NOT just the first time.

To replicate:

1. Go to Editor Preferences → Game ViewPort Settings → New ViewPort Resolution
2. Note the ViewPort width and height
3. Press Play → New Editor Window (PIE)
4. Close the PIE window
5. Repeat Step 1 & 2

Repeat this as many times as you want it will increase by (2x8) every time.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0d5d0b83](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0d5d0b83](https://forums.unrealengine.com/u/anonymous_user_0d5d0b83)\
**Post date:** [January 5, 2021, 3:21pm UTC](https://forums.unrealengine.com/t/bug-new-viewport-size-increases-by-2x8-every-time-you-press-play/476564/2 "2021-01-05T15:21:52Z")

</div>

Hello,

We’ve made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

Thanks

---

<div class="post-metadata">

**Author:** ![Slavq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slavq](https://forums.unrealengine.com/u/Slavq)\
**Post date:** [September 29, 2022, 10:38am UTC](https://forums.unrealengine.com/t/bug-new-viewport-size-increases-by-2x8-every-time-you-press-play/476564/3 "2022-09-29T10:38:14Z")

</div>

This is still an issue in UE 5.0.

Update: I’ve found a workaround: In the settings, check the “Always center first viewport window to screen”:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/e/d3ec027143193c8dc7652f481c8a106219f8feca.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/7/0/0700f2b7f70b60a756252f07ff746854e9ab6b32.png)

… This seems to stop the window resizing behavior.

---

<div class="post-metadata">

**Author:** ![EliasWick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eliaswick/32/1175208_2.png) [@EliasWick](https://forums.unrealengine.com/u/EliasWick)\
**Post date:** [September 29, 2022, 10:49am UTC](https://forums.unrealengine.com/t/bug-new-viewport-size-increases-by-2x8-every-time-you-press-play/476564/4 "2022-09-29T10:49:42Z")

</div>

I am not affected by this. Is this occurring from a completely blank project?

---

<div class="post-metadata">

**Author:** ![Slavq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slavq](https://forums.unrealengine.com/u/Slavq)\
**Post date:** [September 29, 2022, 11:48am UTC](https://forums.unrealengine.com/t/bug-new-viewport-size-increases-by-2x8-every-time-you-press-play/476564/5 "2022-09-29T11:48:09Z")

</div>

Yes, just tested it in a fresh 5.0 project:

1. Play in New Editor Window (PIE)
2. Each time you play, the window will grow slightly larger

It’s more visible when you quickly play/end play many times and e.g. observe the bottom of the window.

---

<div class="post-metadata">

**Author:** ![RhapidFyre](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rhapidfyre/32/581689_2.png) [@RhapidFyre](https://forums.unrealengine.com/u/RhapidFyre)\
**Post date:** [October 15, 2022, 2:54pm UTC](https://forums.unrealengine.com/t/bug-new-viewport-size-increases-by-2x8-every-time-you-press-play/476564/6 "2022-10-15T14:54:56Z")

</div>

Can confirm this bug is still happening, but it only appears to happen on my laptop and not my desktop computer. My laptop is a 4K display and my computer uses x4 1080p monitors. Perhaps that has something to do with it?

Quoted this reply to say it worked for me as well. Centering the first viewport on center fixes the issue of the window increasing it’s size by 2x8 everytime it closes.

Additional viewports are never affected by this bug.

---

<div class="post-metadata">

**Author:** ![Slavq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slavq](https://forums.unrealengine.com/u/Slavq)\
**Post date:** [October 15, 2022, 8:24pm UTC](https://forums.unrealengine.com/t/bug-new-viewport-size-increases-by-2x8-every-time-you-press-play/476564/7 "2022-10-15T20:24:05Z")

</div>

Interesting, so that’s probably why some people are not affected by this, maybe it depends on the resolution. I’m on 3440x1440, so it’s also different than 1080p.

---

<div class="post-metadata">

**Author:** ![ZeLiBoBaS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZeLiBoBaS](https://forums.unrealengine.com/u/ZeLiBoBaS)\
**Post date:** [October 2, 2023, 8:56pm UTC](https://forums.unrealengine.com/t/bug-new-viewport-size-increases-by-2x8-every-time-you-press-play/476564/8 "2023-10-02T20:56:49Z")

</div>

Looks like this bug is happening if you have Scale set to something other than 100% in your Display settings.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/3/7030a2c6cdaab967bf0af98132c836b1de884cb0.png)  
My laptop has it set to 150% by default.

---

<div class="post-metadata">

**Author:** ![YUSES97](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yuses97/32/608865_2.png) [@YUSES97](https://forums.unrealengine.com/u/YUSES97)\
**Post date:** [October 19, 2023, 8:22am UTC](https://forums.unrealengine.com/t/bug-new-viewport-size-increases-by-2x8-every-time-you-press-play/476564/9 "2023-10-19T08:22:29Z")

</div>

I had the same problem, after using web in my project, the standalone window was forced to be 1707 \* 1607(2560/1.5 \* 1600/1.5) when double-clicking full screen mode. My screen resolution was 2560 by 1600 and the scale was 150%. After I set the scale to 100%, everything was back to normal.

---

<div class="post-metadata">

**Author:** ![e.alemdar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@e.alemdar](https://forums.unrealengine.com/u/e.alemdar)\
**Post date:** [March 5, 2024, 4:39pm UTC](https://forums.unrealengine.com/t/bug-new-viewport-size-increases-by-2x8-every-time-you-press-play/476564/10 "2024-03-05T16:39:43Z")

</div>

I am having this problem while Windows 11 screen scale is %150 in UE 5.3.2.

---

<div class="post-metadata">

**Author:** ![Keena](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Keena](https://forums.unrealengine.com/u/Keena)\
**Post date:** [March 25, 2024, 11:07am UTC](https://forums.unrealengine.com/t/bug-new-viewport-size-increases-by-2x8-every-time-you-press-play/476564/11 "2024-03-25T11:07:31Z")

</div>

Still a thing today. It’s so annoying…

---

<div class="post-metadata">

**Author:** ![dominikdalek](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dominikdalek/32/741083_2.png) [@dominikdalek](https://forums.unrealengine.com/u/dominikdalek)\
**Post date:** [May 7, 2024, 11:29am UTC](https://forums.unrealengine.com/t/bug-new-viewport-size-increases-by-2x8-every-time-you-press-play/476564/12 "2024-05-07T11:29:56Z")

</div>

Bug is in `PlayLevel.cpp` in `void UEditorEngine::EndPlayMap()` around its final parts. Specifically this part:

```auto
if (!PlaySettingsConfig->CenterNewWindow && PlaySettingsConfig->LastSize.X > 0 && PlaySettingsConfig->LastSize.Y > 0)
{
	PlaySettingsConfig->NewWindowPosition = PlaySettingsConfig->MultipleInstancePositions[WindowIndex];
	PlaySettingsConfig->NewWindowWidth = PlaySettingsConfig->LastSize.X;
					PlaySettingsConfig->NewWindowHeight = PlaySettingsConfig->LastSize.Y;
}

```

stores the new size on exit if and only if center window is not selected in the play options. But since the `LastSize` values represent the whole window size, not just the viewport area, size increases by the border and title bar with each subsequent PIE session. Short of an engine fix, setting “Always center…” to true - like one of the posters suggested (third post in the thread, written by Slavq) - fixes the resizing issue (but you no longer control the default location).

---

<div class="post-metadata">

**Author:** ![mediochrea](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mediochrea/32/464734_2.png) [@mediochrea](https://forums.unrealengine.com/u/mediochrea)\
**Post date:** [July 5, 2024, 4:02pm UTC](https://forums.unrealengine.com/t/bug-new-viewport-size-increases-by-2x8-every-time-you-press-play/476564/13 "2024-07-05T16:02:17Z")

</div>

There is a (sadly backlogged) issue in the bug tracker for this, please upvote so it has a better chance of getting fixed!

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-162908)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

---

<div class="post-metadata">

**Author:** ![wizeye](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wizeye](https://forums.unrealengine.com/u/wizeye)\
**Post date:** [December 11, 2024, 2:33pm UTC](https://forums.unrealengine.com/t/bug-new-viewport-size-increases-by-2x8-every-time-you-press-play/476564/14 "2024-12-11T14:33:11Z")

</div>

I’m seeing a similar issue, but in my case tabs that I pull out of the editor into their own windows (perhaps on a separate monitor) grow my 2 pixels horizontally every time I restart the editor with Rider. Every few editor starts I have to resize them manually with my mouse cursor.
