fixes #136: Note body rescaling is broken

This commit is contained in:
albert
2011-10-16 22:38:09 -04:00
parent 4ba4d0b088
commit 9d35cc7f5a

View File

@@ -163,8 +163,7 @@ Danbooru.Note = {
var doc_width = $image.offset().left + $image.width(); var doc_width = $image.offset().left + $image.width();
if ($note_body.offset().left + $note_body.width() > doc_width) { if ($note_body.offset().left + $note_body.width() > doc_width) {
$note_body.css({ $note_body.css({
// 30 is a magic number to factor in width of the scroll bar left: $note_body.position().left - 10 - ($note_body.offset().left + $note_body.width() - doc_width)
left: $note_body.position().left - 30 - ($note_body.offset().left + $note_body.width() - doc_width)
}); });
} }
}, },
@@ -195,8 +194,6 @@ Danbooru.Note = {
}, },
resize: function($note_body) { resize: function($note_body) {
return;
var w = $note_body.width(); var w = $note_body.width();
var h = $note_body.height(); var h = $note_body.height();
var golden_ratio = 1.6180339887; var golden_ratio = 1.6180339887;