From bc574f252d341f76a6379c5eed0bda552bce9d16 Mon Sep 17 00:00:00 2001 From: james-cnz <5689414+james-cnz@users.noreply.github.com> Date: Mon, 9 Jan 2023 14:23:16 +1300 Subject: [PATCH] MDL-76729 filepicker: Restore file picker thumbnails in tree view --- lib/form/filemanager.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/form/filemanager.js b/lib/form/filemanager.js index ee94df516c6..057aee314ee 100644 --- a/lib/form/filemanager.js +++ b/lib/form/filemanager.js @@ -736,9 +736,7 @@ M.form_filemanager.init = function(Y, options) { this.lazyloading={}; } this.filemanager.one('.fp-content').fp_display_filelist(options, list, this.lazyloading); - if (this.viewmode != 2) { - this.content_scrolled(); - } + this.content_scrolled(); // This is used to focus after refreshing the list files by update file and set main file action. if (actionfiles !== undefined) { if (actionfiles.action == 'updatefile' || actionfiles.action == 'setmainfile') {