From f2fc7370d213d1270802ad765798f756648f3bb4 Mon Sep 17 00:00:00 2001 From: Toks Date: Wed, 1 May 2013 14:57:55 -0400 Subject: [PATCH] fix for #1051 --- app/assets/javascripts/notes.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js index 5429dd46b..6bfb2a995 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -516,12 +516,14 @@ Danbooru.Note = { Danbooru.Note.Body.set_text($note_body, text); }, - new: function(x, y) { + new: function(x, y, w, h) { var $note_box = Danbooru.Note.Box.create(Danbooru.Note.id); var $note_body = Danbooru.Note.Body.create(Danbooru.Note.id); $note_box.css({ top: y, - left: x + left: x, + width: w, + height: h }); $note_box.find(".note-box-inner-border").addClass("unsaved"); $note_body.html("Click to edit");