fixed resize height/width switch