()
| 105 | } |
| 106 | |
| 107 | setRotation() { |
| 108 | const { rotate } = this.props; |
| 109 | // For reference: https://github.com/wojtekmaj/react-pdf/issues/277#issuecomment-424464542 |
| 110 | if (this.pageData) { |
| 111 | this.setState({ |
| 112 | effectiveRotation: normalizeDegreeValue( |
| 113 | this.pageData.rotate + (rotate || 0) |
| 114 | ), |
| 115 | }); |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | onResize() { |
| 120 | // Node we use a magic number to subtract scrollBarWidth (usually 15-17px) |
no test coverage detected