Fixed issue in guages with ticks disappearing or being badly laid out after resizing. Closes #1262.