(top)
| 551 | } |
| 552 | |
| 553 | fixCropperTop(top) { |
| 554 | let newTop = top; |
| 555 | const absTopMiddle = this.rectTop() + this.area.rect.clientHeight; |
| 556 | if (newTop < this.main.elTop()) { |
| 557 | return this.main.elTop(); |
| 558 | } else if (newTop > absTopMiddle) { |
| 559 | newTop = absTopMiddle; |
| 560 | if (this.area.resizingT) { |
| 561 | this.area.resizingT = false; |
| 562 | this.area.resizingB = true; |
| 563 | } |
| 564 | } |
| 565 | return newTop; |
| 566 | } |
| 567 | |
| 568 | fixCropperBottom(bottom) { |
| 569 | let newBottom = bottom; |
no test coverage detected