mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
remove this.sh and this.sw leftover from previous attempts which did not exist thus returning false
This commit is contained in:
parent
00f2440ae8
commit
922c8d2b20
@ -596,7 +596,7 @@ class File {
|
||||
newHeightPerc = (newHeight * 100) / this.startData.height;
|
||||
newWidthPerc = (this.data.width * 100) / this.startData.width;
|
||||
|
||||
if (this.keepRatio && this.sh == 0) {
|
||||
if (this.keepRatio) {
|
||||
document.getElementById("rs-height").value = newHeight;
|
||||
this.data.height = newHeight;
|
||||
|
||||
@ -633,7 +633,7 @@ class File {
|
||||
newWidthPerc = (newWidth * 100) / this.startData.width;
|
||||
newHeightPerc = (this.data.height * 100) / this.startData.height;
|
||||
|
||||
if (this.keepRatio && this.sw == 0) {
|
||||
if (this.keepRatio) {
|
||||
document.getElementById("rs-width").value = newWidth;
|
||||
this.data.width = newWidth;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user