#2284 resize ugoira controls with image
This commit is contained in:
@@ -360,11 +360,13 @@
|
||||
$img.data("scale_factor", ratio);
|
||||
$img.css("width", $img.data("original_width") * ratio);
|
||||
$img.css("height", $img.data("original_height") * ratio);
|
||||
Danbooru.Post.resize_ugoira_controls();
|
||||
}
|
||||
} else {
|
||||
$img.data("scale_factor", 1);
|
||||
$img.width($img.data("original_width"));
|
||||
$img.height($img.data("original_height"));
|
||||
Danbooru.Post.resize_ugoira_controls();
|
||||
}
|
||||
|
||||
Danbooru.Note.Box.scale_all();
|
||||
@@ -428,6 +430,12 @@
|
||||
$("#edit").hide();
|
||||
}
|
||||
|
||||
Danbooru.Post.resize_ugoira_controls = function() {
|
||||
var $img = $("#image");
|
||||
$("#ugoira-control-panel").css("width", $img.width());
|
||||
$("#seek-slider").css("width", $img.width() - 81);
|
||||
}
|
||||
|
||||
Danbooru.Post.notice_update = function(x) {
|
||||
if (x === "inc") {
|
||||
Danbooru.Post.pending_update_count += 1;
|
||||
|
||||
Reference in New Issue
Block a user