Merge branch 'master' of github.com:r888888888/danbooru
This commit is contained in:
@@ -92,10 +92,10 @@ Danbooru.Note = {
|
|||||||
var ratio = $image.width() / parseFloat($("#image").data("original-width"));
|
var ratio = $image.width() / parseFloat($("#image").data("original-width"));
|
||||||
var $note = $("#notes > article[data-id=" + $note_box.data("id") + "]");
|
var $note = $("#notes > article[data-id=" + $note_box.data("id") + "]");
|
||||||
$note_box.css({
|
$note_box.css({
|
||||||
top: parseFloat($note.data("y")) * ratio,
|
top: Math.ceil(parseFloat($note.data("y")) * ratio),
|
||||||
left: parseFloat($note.data("x")) * ratio,
|
left: Math.ceil(parseFloat($note.data("x")) * ratio),
|
||||||
width: parseFloat($note.data("width")) * ratio,
|
width: Math.ceil(parseFloat($note.data("width")) * ratio),
|
||||||
height: parseFloat($note.data("height")) * ratio
|
height: Math.ceil(parseFloat($note.data("height")) * ratio)
|
||||||
});
|
});
|
||||||
Danbooru.Note.Box.resize_inner_border($note_box);
|
Danbooru.Note.Box.resize_inner_border($note_box);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user