modifiy sp2 automatic window size