()
| 262 | } |
| 263 | |
| 264 | componentDidMount() { |
| 265 | const { orientation } = this.props; |
| 266 | const { currentMonth } = this.state; |
| 267 | |
| 268 | const calendarInfoWidth = this.calendarInfo |
| 269 | ? calculateDimension(this.calendarInfo, 'width', true, true) |
| 270 | : 0; |
| 271 | const currentMonthScrollTop = this.transitionContainer && orientation === VERTICAL_SCROLLABLE |
| 272 | ? this.transitionContainer.scrollHeight - this.transitionContainer.scrollTop |
| 273 | : null; |
| 274 | |
| 275 | this.setState({ |
| 276 | isTouchDevice: isTouchDevice(), |
| 277 | calendarInfoWidth, |
| 278 | currentMonthScrollTop, |
| 279 | }); |
| 280 | |
| 281 | this.setCalendarMonthWeeks(currentMonth); |
| 282 | } |
| 283 | |
| 284 | componentWillReceiveProps(nextProps, nextState) { |
| 285 | const { |
nothing calls this directly
no test coverage detected