potential fix for #103: Note placement on full sized images

This commit is contained in:
albert
2011-10-05 19:05:33 -04:00
parent 39560a25dc
commit 5456b7ec5f

View File

@@ -159,7 +159,8 @@ Danbooru.Note = {
},
bound_position: function($note_body) {
var doc_width = $(window).width();
var $image = $("#image");
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