Calculate the proper height for kanban column.

stable
Andrey Antukh 2014-07-23 14:59:30 +02:00
parent 1608c42678
commit 3f432905d7
2 changed files with 7 additions and 3 deletions

View File

@ -41,8 +41,12 @@ KanbanSortableDirective = ($repo, $rs, $rootscope) ->
######################### #########################
link = ($scope, $el, $attrs) -> link = ($scope, $el, $attrs) ->
$el.css("height", "800px") mainPadding = 32 # px
$el.closest(".kanban-table-body").css("height", "800px") elementOffset = $el.offset().top
windowHeight = angular.element(window).height()
columnHeight = windowHeight - elementOffset - mainPadding
$el.css("height", "#{columnHeight}px")
oldParentScope = null oldParentScope = null
newParentScope = null newParentScope = null

View File

@ -42,7 +42,7 @@ $column-margin: 0 10px 0 0;
.kanban-table-body { .kanban-table-body {
@include table-flex(); @include table-flex();
height: 700px; //height: 700px;
overflow: hidden; overflow: hidden;
overflow-x: auto; overflow-x: auto;
width: 100%; width: 100%;