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:
@@ -362,6 +362,8 @@ class Note {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Note.Body.hide_all();
|
||||||
|
|
||||||
let large_width = parseFloat($image.data('large-width'));
|
let large_width = parseFloat($image.data('large-width'));
|
||||||
let ratio = $image.width() / large_width;
|
let ratio = $image.width() / large_width;
|
||||||
let font_percentage = ratio * 100;
|
let font_percentage = ratio * 100;
|
||||||
|
|||||||
Reference in New Issue
Block a user