From 9d35cc7f5a4e97b3076327aa89bd341e311ce114 Mon Sep 17 00:00:00 2001 From: albert Date: Sun, 16 Oct 2011 22:38:09 -0400 Subject: [PATCH] fixes #136: Note body rescaling is broken --- app/assets/javascripts/notes.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js index 0abd468dc..395f276de 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -163,8 +163,7 @@ Danbooru.Note = { var doc_width = $image.offset().left + $image.width(); if ($note_body.offset().left + $note_body.width() > doc_width) { $note_body.css({ - // 30 is a magic number to factor in width of the scroll bar - left: $note_body.position().left - 30 - ($note_body.offset().left + $note_body.width() - doc_width) + left: $note_body.position().left - 10 - ($note_body.offset().left + $note_body.width() - doc_width) }); } }, @@ -195,8 +194,6 @@ Danbooru.Note = { }, resize: function($note_body) { - return; - var w = $note_body.width(); var h = $note_body.height(); var golden_ratio = 1.6180339887;