Fixed truncation issue on window resize