notes: hide note bodies when resizing image.

Bug: if you're editing a note and click preview, then you resize the
image or press V to toggle the image size, then the note body will stay
on the screen in the wrong position.
This commit is contained in:
evazion
2020-07-29 10:03:53 -05:00
parent 5940a40a5a
commit fd8a62ba5e

View File

@@ -362,6 +362,8 @@ class Note {
return;
}
Note.Body.hide_all();
let large_width = parseFloat($image.data('large-width'));
let ratio = $image.width() / large_width;
let font_percentage = ratio * 100;