Signed-off-by: Patrik Kernstock <info@pkern.at>
}
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--;