Prevent flickering caused by changing svg height.