fix #1897 - unassigned ceil taskboard compression
parent
9115020809
commit
494cf2d1a9
|
@ -346,7 +346,7 @@ TaskboardSquishColumnDirective = (rs) ->
|
||||||
|
|
||||||
$scope.foldUs = (us) ->
|
$scope.foldUs = (us) ->
|
||||||
if !us
|
if !us
|
||||||
$scope.usFolded["unassigned"] = !!!$scope.usFolded["unassigned"]
|
$scope.usFolded[null] = !!!$scope.usFolded[null]
|
||||||
else
|
else
|
||||||
$scope.usFolded[us.id] = !!!$scope.usFolded[us.id]
|
$scope.usFolded[us.id] = !!!$scope.usFolded[us.id]
|
||||||
|
|
||||||
|
@ -390,11 +390,11 @@ TaskboardSquishColumnDirective = (rs) ->
|
||||||
$el.find('.taskboard-table-inner').css("width", totalWidth)
|
$el.find('.taskboard-table-inner').css("width", totalWidth)
|
||||||
|
|
||||||
recalculateStatusColumnWidth = (statusId) =>
|
recalculateStatusColumnWidth = (statusId) =>
|
||||||
statusFoldedWidth = 0
|
#unassigned ceil
|
||||||
|
statusFoldedWidth = getCeilWidth(null, statusId)
|
||||||
|
|
||||||
_.forEach $scope.userstories, (us) ->
|
_.forEach $scope.userstories, (us) ->
|
||||||
width = getCeilWidth(us.id, statusId)
|
width = getCeilWidth(us.id, statusId)
|
||||||
|
|
||||||
statusFoldedWidth = width if width > statusFoldedWidth
|
statusFoldedWidth = width if width > statusFoldedWidth
|
||||||
|
|
||||||
setStatusColumnWidth(statusId, statusFoldedWidth)
|
setStatusColumnWidth(statusId, statusFoldedWidth)
|
||||||
|
|
|
@ -27,10 +27,10 @@ div.taskboard-table(tg-taskboard-squish-column)
|
||||||
tg-taskboard-task)
|
tg-taskboard-task)
|
||||||
include ../components/taskboard-task
|
include ../components/taskboard-task
|
||||||
|
|
||||||
div.task-row(ng-init="us = null", ng-class="{'row-fold':usFolded['unassigned']}")
|
div.task-row(ng-init="us = null", ng-class="{'row-fold':usFolded[null]}")
|
||||||
div.taskboard-userstory-box.task-column
|
div.taskboard-userstory-box.task-column
|
||||||
a.icon.icon-vfold.vfold(href="", title="Fold Row", ng-click='foldUs()', ng-class="{hidden:usFolded['unassigned']}")
|
a.icon.icon-vfold.vfold(href="", title="Fold Row", ng-click='foldUs()', ng-class="{hidden:usFolded[null]}")
|
||||||
a.icon.icon-vunfold.vunfold(href="", title="Unfold Row", ng-click='foldUs()', ng-class="{hidden:!usFolded['unassigned']}")
|
a.icon.icon-vunfold.vunfold(href="", title="Unfold Row", ng-click='foldUs()', ng-class="{hidden:!usFolded[null]}")
|
||||||
h3.us-title
|
h3.us-title
|
||||||
span Unassigned tasks
|
span Unassigned tasks
|
||||||
include ../components/addnewtask.jade
|
include ../components/addnewtask.jade
|
||||||
|
|
Loading…
Reference in New Issue