From d728b85fddb91bc9f854e6f4b66772d666aaf732 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Fri, 27 Mar 2015 01:34:55 +0100 Subject: adjust controls bar width to not overlay scrollbar --- apps/files/js/filelist.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'apps/files/js') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 67bc487a72f..9d60e77b0ac 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -635,6 +635,8 @@ * @param filesArray array of file data (map) */ setFiles: function(filesArray) { + var self = this; + // detach to make adding multiple rows faster this.files = filesArray; @@ -655,7 +657,10 @@ this.updateSelectionSummary(); $(window).scrollTop(0); - this.$fileList.trigger(jQuery.Event("updated")); + this.$fileList.trigger(jQuery.Event('updated')); + _.defer(function() { + self.$el.closest('#app-content').trigger(jQuery.Event('apprendered')); + }); }, /** * Creates a new table row element using the given file data. -- cgit v1.2.3