Automatically resize the window to fit RSC