a few tweaks to zoom computations so that zoom-to-range works correctly