ResizeDependingWindows: fix current state of the resized window