Merge pull request #5135 from patschi/remove-appmenu-limit

Remove appmenu limit
This commit is contained in:
Joas Schilling 2017-05-30 11:51:10 +02:00 committed by GitHub
commit bd19eef2ae
1 changed files with 0 additions and 5 deletions

View File

@ -1511,14 +1511,9 @@ function initCore() {
}
var resizeMenu = function() {
var maxApps = 8;
var appList = $('#appmenu li');
var availableWidth = $('#header-left').width() - $('#nextcloud').width() - 44;
var appCount = Math.floor((availableWidth)/44);
// show a maximum of 8 apps
if(appCount >= maxApps) {
appCount = maxApps;
}
// show at least 2 apps in the popover
if(appList.length-1-appCount >= 1) {
appCount--;