Calculate the proper height for kanban column.
parent
1608c42678
commit
3f432905d7
|
@ -41,8 +41,12 @@ KanbanSortableDirective = ($repo, $rs, $rootscope) ->
|
|||
#########################
|
||||
|
||||
link = ($scope, $el, $attrs) ->
|
||||
$el.css("height", "800px")
|
||||
$el.closest(".kanban-table-body").css("height", "800px")
|
||||
mainPadding = 32 # px
|
||||
elementOffset = $el.offset().top
|
||||
windowHeight = angular.element(window).height()
|
||||
columnHeight = windowHeight - elementOffset - mainPadding
|
||||
|
||||
$el.css("height", "#{columnHeight}px")
|
||||
|
||||
oldParentScope = null
|
||||
newParentScope = null
|
||||
|
|
|
@ -42,7 +42,7 @@ $column-margin: 0 10px 0 0;
|
|||
|
||||
.kanban-table-body {
|
||||
@include table-flex();
|
||||
height: 700px;
|
||||
//height: 700px;
|
||||
overflow: hidden;
|
||||
overflow-x: auto;
|
||||
width: 100%;
|
||||
|
|
Loading…
Reference in New Issue