Fixed a bug where line-spacing did not update with changing window size.