Some research on viewport resize and capture the size