Simple demo page to show 'viewport.fitBounds().applyConstraints()' issue.
viewport.fitBoundsWithConstraints(bounds);
viewport.fitBounds(bounds);
viewport.fitBounds(bounds).applyConstraints();