* change for kanban height.

This commit is contained in:
wangyidong
2018-09-05 15:35:51 +08:00
parent 30f8957593
commit 7e70c106eb
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
.board-item > .info {line-height: 22px; margin-top: 6px;}
.board-item + .board-item {margin-top: 10px;}
.board-item .task-left {float: right; font-size: 12px; color: #a6aab8;}
.boards-wrapper {max-height: 400px; overflow: auto;}
.boards-wrapper {overflow: auto;}
.board.can-drop-in {background-color: #fff!important; opacity: 1!important;}
.c-board.dragging {color: #006af1;}
.board.drop-to {background-color: #fff0d5!important;}
+3 -1
View File
@@ -2,8 +2,10 @@ $(function()
{
$('.c-boards').each(function()
{
var height = $(window).height() - $('#header').height() - $('#footer').height() - 40 - 101;
var $boardsWrapper = $(this).find('.boards-wrapper');
if($boardsWrapper.height() < $(this).height())
$boardsWrapper.height(height);
if($boardsWrapper.height() > $boardsWrapper.find('.boards').height())
{
$boardsWrapper.find('.boards').css('height', $(this).height());
}