(bottom)
| 566 | } |
| 567 | |
| 568 | fixCropperBottom(bottom) { |
| 569 | let newBottom = bottom; |
| 570 | const absBottomLimit = this.main.elTop() + this.area.el.clientHeight; |
| 571 | if (newBottom > absBottomLimit) { |
| 572 | return absBottomLimit; |
| 573 | } else if (newBottom < this.rectTop()) { |
| 574 | newBottom = this.rectTop() + this.area.rect.clientHeight; |
| 575 | if (this.area.resizingB) { |
| 576 | this.area.resizingB = false; |
| 577 | this.area.resizingT = true; |
| 578 | } |
| 579 | } |
| 580 | return newBottom; |
| 581 | } |
| 582 | } |
no test coverage detected