diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index f8312fcb569e..e76008dc344b 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2533,6 +2533,18 @@ } if (!_.isUndefined(detailTabId)) { var filename = file[file.length - 1]; + //Double check if the area that you are scrolling is beyond the page limit? + var pageSize = this.pageSize(); + var index = _.findIndex(this.files, function (obj) { + return obj.name === filename; + }); + if (index >= pageSize) { + var numberOfMorePagesToScroll = Math.floor(index / pageSize); + while (numberOfMorePagesToScroll > 0) { + this._nextPage(); + numberOfMorePagesToScroll--; + } + } this.showDetailsView(filename, detailTabId); } this.highlightFiles(file, function($tr) { diff --git a/tests/acceptance/features/webUIFiles/browseDirectlyToDetailsTab.feature b/tests/acceptance/features/webUIFiles/browseDirectlyToDetailsTab.feature index 7f0f50a26ce0..5df2a54ad5ca 100644 --- a/tests/acceptance/features/webUIFiles/browseDirectlyToDetailsTab.feature +++ b/tests/acceptance/features/webUIFiles/browseDirectlyToDetailsTab.feature @@ -23,12 +23,11 @@ Feature: browse directly to details tab #merge this tests into previous scenario when bug is fixed @smokeTest - @issue-35200 Scenario Outline: Browse directly to the sharing details of a file When the user tries to browse directly to display the "sharing" details of file "" in folder "" #Then the thumbnail should be visible in the details panel Then the "sharing" details panel should be visible - And the share-with field should not be visible in the details panel + And the share-with field should be visible in the details panel #And the share-with field should be visible in the details panel Examples: | file | folder | comment | @@ -48,7 +47,6 @@ Feature: browse directly to details tab | lorem.txt | simple-folder | a file somewhere in between | #merge this tests into previous scenario when bug is fixed - @issue-35200 @comments-app-required Scenario Outline: Browse directly to the comments details of a file When the user tries to browse directly to display the "comments" details of file "" in folder "" @@ -72,7 +70,6 @@ Feature: browse directly to details tab | lorem.txt | simple-folder | a file somewhere in between | #merge this tests into previous scenario when bug is fixed - @issue-35200 @files_versions-app-required Scenario Outline: Browse directly to the versions details of a file When the user tries to browse directly to display the "versions" details of file "" in folder ""