Fix a problem of window size (Windows Only)