Fix column height on kanban.
parent
3f432905d7
commit
dca82d63d4
|
@ -26,6 +26,7 @@ toggleText = @.taiga.toggleText
|
||||||
scopeDefer = @.taiga.scopeDefer
|
scopeDefer = @.taiga.scopeDefer
|
||||||
bindOnce = @.taiga.bindOnce
|
bindOnce = @.taiga.bindOnce
|
||||||
groupBy = @.taiga.groupBy
|
groupBy = @.taiga.groupBy
|
||||||
|
timeout = @.taiga.timeout
|
||||||
|
|
||||||
module = angular.module("taigaKanban")
|
module = angular.module("taigaKanban")
|
||||||
|
|
||||||
|
@ -41,11 +42,13 @@ KanbanSortableDirective = ($repo, $rs, $rootscope) ->
|
||||||
#########################
|
#########################
|
||||||
|
|
||||||
link = ($scope, $el, $attrs) ->
|
link = ($scope, $el, $attrs) ->
|
||||||
|
timeout 500, ->
|
||||||
mainPadding = 32 # px
|
mainPadding = 32 # px
|
||||||
elementOffset = $el.offset().top
|
elementOffset = $el.parent().parent().offset().top
|
||||||
windowHeight = angular.element(window).height()
|
windowHeight = angular.element(window).height()
|
||||||
columnHeight = windowHeight - elementOffset - mainPadding
|
columnHeight = windowHeight - elementOffset - mainPadding
|
||||||
|
|
||||||
|
console.log elementOffset, windowHeight, columnHeight
|
||||||
$el.css("height", "#{columnHeight}px")
|
$el.css("height", "#{columnHeight}px")
|
||||||
|
|
||||||
oldParentScope = null
|
oldParentScope = null
|
||||||
|
|
Loading…
Reference in New Issue