Calculate the proper height for kanban column.
parent
1608c42678
commit
3f432905d7
|
@ -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
|
||||||
|
|
|
@ -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%;
|
||||||
|
|
Loading…
Reference in New Issue