This commit is contained in:
Lightforger
2013-04-17 07:14:42 +03:00
parent 80cf4d2475
commit 7688b3f8c0

View File

@@ -92,10 +92,10 @@ Danbooru.Note = {
var ratio = $image.width() / parseFloat($("#image").data("original-width"));
var $note = $("#notes > article[data-id=" + $note_box.data("id") + "]");
$note_box.css({
top: parseFloat($note.data("y")) * ratio,
left: parseFloat($note.data("x")) * ratio,
width: parseFloat($note.data("width")) * ratio,
height: parseFloat($note.data("height")) * ratio
top: Math.ceil(parseFloat($note.data("y")) * ratio),
left: Math.ceil(parseFloat($note.data("x")) * ratio),
width: Math.ceil(parseFloat($note.data("width")) * ratio),
height: Math.ceil(parseFloat($note.data("height")) * ratio)
});
Danbooru.Note.Box.resize_inner_border($note_box);
},