Layout is broken when resizing window

When I resize the window, it usually has a broken layout. Like snapping to right or left or just resizing. See attached picture of emClient window snapped to right in Windows 10: https://i.imgur.com/ghs8qMh.png