refactored viewbox limiting function
build
Merge branch 'viewbox-limits'