Resizing screen automatically moves camera

Hello everyone,

I was experimenting with screen resizing, and I found out that if you make the screen narrower when it is set to AdaptHeight, then put it back to normal, and then narrow it again, the placement of the camera will be off, usually resulting in some negative space at the top of the screen.

In simpler terms, if you make the screen narrow, then it’s original size, then narrow again, the camera will almost automatically be mapped to the center of the screen.

I just checked, and setting it to “adaptWidth” also has this problem. Resizing the screen and then reverting it causes cameras to be positioned wrong.

I have provided a video showing this here:

Is this a bug? Something that can be fixed? Is it intentional? I just want to know since I would like to add the option to resize the screen into my game but I don’t want something like this to also be possible in it.

Thank you in advance.