From 0fbbc60a33637f6dd1dc35e0fc2547f5b9c43230 Mon Sep 17 00:00:00 2001 From: evazion Date: Wed, 29 Jul 2020 12:44:30 -0500 Subject: [PATCH] notes: show note bodies after dragging notes. After dragging a note, show the note body again so you can see how it looks. --- 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 565f82ca4..c237ea3eb 100644 --- a/app/javascript/src/javascripts/notes.js +++ b/app/javascript/src/javascripts/notes.js @@ -103,6 +103,7 @@ class Note { // changes the CSS coordinates to pixels, so we have to convert them back to percentages. on_dragstop() { this.place_note(this.note.x, this.note.y, this.note.width, this.note.height); + this.note.body.show(); } // Place the note box using absolute percentage coordinates (floats in the range 0.0..1.0).