prevent zooming in past max size