diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2015-03-27 03:34:55 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-06-04 15:31:31 +0300 |
commit | eeace88beb588a902c17462dc5ac857c2ec3b629 (patch) | |
tree | af718d9c1971f7d77f66df46a3c6950e21a2a869 /apps | |
parent | 5fcab24e592c5f0f35d3293449dbd2f15a40f5f8 (diff) |
adjust controls bar width to not overlay scrollbar
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/filelist.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 43b8c16eaa8..4fde8e84f9b 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. |