Fix resizing box shadow glitches