Fixes calculation of axis width/height in case values are not shown.