fix scrolling bug in file manager

This commit is contained in:
Fornax committed 2020-02-18 17:06:51 +01:00
1 parent 449c69b12d
commit 2bc4aed361
2 files changed
+1 -3

No files matched your search

@@ -233,8 +233,6 @@ DirectoryElement.prototype.renderVisibleFiles = function(freshStart) {
if (freshStart) {
this.dirContainer.innerHTML = ""
this.dirContainer.style.height = totalHeight+"px"
this.dirContainer.scrollTop = 0
this.lastScrollTop = 0
scrollDown = true
let totalSize = 0
@@ -6,7 +6,7 @@ function DetailsWindow(viewer) {
this.modal = new Modal(
document.getElementById("file_viewer"),
() => { this.toggle() },
"File Details", "1200px", "1000px",
"File Details", "1400px", "1000px",
)
let clone = document.getElementById("tpl_details_popup").content.cloneNode(true)