{ 'This content can be panned and zoomed' }
this.content = ref}>{ 'This content can be panned and zoomed only outside of its container' }
)
}
```
### Boundaries
`PanZoom` supports the `enableBoundingBox` prop to restrict panning. The box is calculated based on the width and height of the inner content.
A ratio is applied so that the bounding box allows panning up to a specific percentage of the inner content.
By default this ratio is `0.8` but can be modified with `boundaryRatioVertical` and `boundaryRatioHorizontal`. In this case the pan content will be able to pan outside the parent container up to 80% of its size (the 20% remaining will always be visible).
A negative ratio will create a padding, but combined with zooming it can produce strange behaviour.
A ratio above 1 will allow the pan content to pan outside the parent container more than its size.
To use the bounding box:
```js
import { PanZoom } from 'react-easy-panzoom'
// ...
render() {
return (