()
| 442 | } |
| 443 | |
| 444 | topKeepRatio() { |
| 445 | const newH = this.area.rect.clientWidth / this.placedRatio; |
| 446 | const absTop = this.fixCropperTop( |
| 447 | this.main.elTop() + (this.area.el.clientHeight - this.bottom - newH - 2)); |
| 448 | this.setTop(absTop - this.main.elTop()); |
| 449 | } |
| 450 | |
| 451 | bottomKeepRatio() { |
| 452 | const newH = this.area.rect.clientWidth / this.placedRatio; |
no test coverage detected