folder list height

This commit is contained in:
j 2019-01-28 22:38:31 +05:30
parent aac3e66f7b
commit d8ce172716
1 changed files with 4 additions and 3 deletions

View File

@ -176,7 +176,8 @@ oml.ui.folders = function() {
$content = oml.$ui.folder[index].$content $content = oml.$ui.folder[index].$content
.css({ .css({
height: (2 + items.length) * 16 + 'px' // user also has inbox
height: ((index ? 1 : 2) + items.length) * 16 + 'px'
}); });
$lists.push( $lists.push(
@ -365,9 +366,9 @@ oml.ui.folders = function() {
oml.$ui.libraryList[index].options({ oml.$ui.libraryList[index].options({
items: library items: library
}); });
// library + public + lists // library + inbox + lists
oml.$ui.folder[index].$content oml.$ui.folder[index].$content
.css({height: 16 + 16 + items.length * 16 + 'px'}); .css({height: (index ? 16 : 32) + items.length * 16 + 'px'});
oml.$ui.folderList[index].options({ oml.$ui.folderList[index].options({
items: items items: items
}) })