]> source.dussan.org Git - nextcloud-server.git/commitdiff
Closed #5121, remove appmenu limit
authorPatrik Kernstock <info@pkern.at>
Fri, 26 May 2017 17:39:22 +0000 (19:39 +0200)
committerJulius Härtl <jus@bitgrid.net>
Thu, 15 Jun 2017 08:54:51 +0000 (10:54 +0200)
Signed-off-by: Patrik Kernstock <info@pkern.at>
core/js/js.js

index ffbe438dc9a00befe824ed0fd29380431ddc6334..ee4b03dd99d7799976b8cee9f33435ad13fab60f 100644 (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--;