save the width and height of the window when the size changed.