Improve the grid resize logic to work with themes that add padding
A bunch of different themes add bits of padding here and there which cause the grid to flow a few pixels before/after Sublime expects it to. Make the grid resize logic more robust to handle all different themes.
Also affects DPI changes.
Edited by Sumner Evans