Fix toolbar menulist height calculation

This commit is contained in:
Hadi Nategh
2016-05-27 16:32:56 +02:00
parent 55030eb5f2
commit 179d121efa
7 changed files with 13 additions and 7 deletions

View File

@ -439,6 +439,14 @@ var et2_toolbar = (function(){ "use strict"; return et2_DOMWidget.extend([et2_II
},
beforeActivate: function ()
{
if (egwIsMobile())
{
menulist.height(screen.availHeight - 50);
}
else
{
menulist.css({height:'inherit'})
}
// Nothing to show in menulist
if (menulist.children().length == 0) return false;
}