Window.AllowUserResizing = true; doesn't work when resizing with borders


When this option is set, resizing the window by dragging the window border causes the window to snap back to the original size. Making the window fullscreen using the maximize control box or using Aero snap works just fine.

OS: Windows 7
Monogame Version: 3.0 Beta
Visual Studio: 2012

file attachments

Closed May 28, 2016 at 7:53 PM by TomSpilman


Ruirize wrote Dec 5, 2012 at 3:05 PM

This is caused by ChangeClientBounds setting updateClientBounds to true, but then the method that acts on this checks for false.

Ruirize wrote Dec 5, 2012 at 3:11 PM

Scratch that. I have no idea what's going on there, but having updateClientBounds constantly false, it works.

Ruirize wrote Dec 5, 2012 at 3:53 PM


Turns out, it's caused by the lack of RunLoop() being called while the user is resizing, and so it only accepts the first event.

wrote Dec 8, 2012 at 1:26 PM

wrote Feb 22, 2013 at 1:56 AM

wrote May 28, 2016 at 7:53 PM