Fix keyword tip bug on window resize or scroll