mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Revert "During resizing, make the smaller dimension decide the new dimensions"
This reverts commit 5bad9a913ce7b4a4cc58106936203fddec37d6da. The previous behavior was the one you can observe in most graphical editors: The bigger dimension (width or height) will decide the size, not the smaller one.
This commit is contained in:
parent
64a68743bd
commit
f379e18e6f
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
const widthIncrease = dragWidth / naturalWidth!;
|
||||
const heightIncrease = dragHeight / naturalHeight!;
|
||||
|
||||
if (widthIncrease < heightIncrease) {
|
||||
if (widthIncrease > heightIncrease) {
|
||||
width = Math.trunc(dragWidth);
|
||||
height = Math.trunc(naturalHeight! * widthIncrease);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue