fixes #2692: Rework bookmarklet preview

This commit is contained in:
r888888888
2017-03-21 15:41:20 -07:00
parent 022d9ede7f
commit c4b5998e64
4 changed files with 46 additions and 50 deletions

View File

@@ -176,6 +176,9 @@ Danbooru.Note = {
scale_all: function() {
var container = document.getElementById('note-container');
if (container === null) {
return;
}
// Hide notes while rescaling, to prevent unnecessary reflowing
var was_visible = container.style.display != 'none';
if (was_visible) {