It is important that you do not hold and drag from a window's edge to switch between the maximized and non-maximized state. The bug happens right before transitioning to (or from) the two-line text box, then it readjusts accordingly to the expected behavior.
Actually, you can hold and drag and still reproduce the bug, but you need to be very precise (1-pixel precise) to stop holding right before the transition is to occur. One thing is true, being that precise, the bug happens every single time.