Changes grid spacing to an integral type and adjusts UI elements to match the new spacing.