From 6f7530533a4a588a04ed5c72b97c04972f2ef152 Mon Sep 17 00:00:00 2001 From: BrokenEagle Date: Fri, 5 Jun 2020 21:50:17 +0000 Subject: [PATCH] Fix notes having absolute coordinates upon creation Notes are not given percent coordinates when created, however moving or resizing would update the coordinates to percentage. This is why it was appearing as if the type of coordinates given were random. --- app/javascript/src/javascripts/notes.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/src/javascripts/notes.js b/app/javascript/src/javascripts/notes.js index 385c6975d..dac3d5cb3 100644 --- a/app/javascript/src/javascripts/notes.js +++ b/app/javascript/src/javascripts/notes.js @@ -972,6 +972,7 @@ let Note = { height: h }); Note.Box.update_data_attributes($note_box); + Note.Box.scale($note_box); $note_box.addClass("new-note"); $note_box.addClass("unsaved"); $note_body.html("Click to edit");