docs/examples-0.7.x/libs/leaflet-src.js
function (offset, bounds) {
		if (!bounds) { return offset; }

		var viewBounds = this.getPixelBounds(),
		    newBounds = new L.Bounds(viewBounds.min.add(offset), viewBounds.max.add(offset));

		return offset.add(this._getBoundsOffset(newBounds, bounds));
	}
function (offset, bounds) {
		if (!bounds) { return offset; }

		var viewBounds = this.getPixelBounds(),
		    newBounds = new L.Bounds(viewBounds.min.add(offset), viewBounds.max.add(offset));

		return offset.add(this._getBoundsOffset(newBounds, bounds));
	}
function ( offset , bounds ) { if ( ! bounds ) { return offset ; } var viewBounds = this . getPixelBounds ( ) , newBounds = new L . Bounds ( viewBounds . min . add ( offset ) , viewBounds . max . add ( offset ) ) ; return offset . add ( this . _getBoundsOffset ( newBounds , bounds ) ) ; }
adjust offset for view to get inside bounds
adjust offset for view to get inside bounds