Implementing horizontal scroll in taskboard

stable
Alejandro Alonso 2014-07-01 13:23:11 +02:00
parent 61b9bbdea1
commit 5bf23d114c
1 changed files with 5 additions and 0 deletions

View File

@ -190,6 +190,11 @@ TaskboardDirective = ($rootscope) ->
toggleText(target, ["Hide statistics", "Show statistics"]) # TODO: i18n toggleText(target, ["Hide statistics", "Show statistics"]) # TODO: i18n
$rootscope.$broadcast("taskboard:graph:toggle-visibility") $rootscope.$broadcast("taskboard:graph:toggle-visibility")
taskboardTableBodyDom = $el.find(".taskboard-table-body")
taskboardTableHeaderInnerDom = $el.find(".taskboard-table-header .taskboard-table-inner")
taskboardTableBodyDom.scroll () ->
taskboardTableHeaderInnerDom.css('left', -1 * taskboardTableBodyDom.scrollLeft())
$scope.$on "$destroy", -> $scope.$on "$destroy", ->
$el.off() $el.off()