Fixed popup window resize bug.