Removed window size adjustment code.