Remove some bottom padding from main div.

This removes unnecesary vertical scroll on kanban when
horizontal scroll is available. It seems not affects
much other sections.

An other option to do this is adding more additional
padding to kanban column height fixer but it reduces
considerable the working zone.
stable
Andrey Antukh 2014-09-12 20:48:13 +02:00
parent 6408ab2f61
commit 9f391ac6ac
2 changed files with 3 additions and 1 deletions

View File

@ -251,11 +251,12 @@ module.directive("tgKanbanRowWidthFixer", KanbanRowWidthFixerDirective)
KanbanColumnHeightFixerDirective = ->
mainPadding = 32 # px
scrollPadding = 0 # px
renderSize = ($el) ->
elementOffset = $el.parent().parent().offset().top
windowHeight = angular.element(window).height()
columnHeight = windowHeight - elementOffset - mainPadding
columnHeight = windowHeight - elementOffset - mainPadding - scrollPadding
$el.css("height", "#{columnHeight}px")
link = ($scope, $el, $attrs) ->

View File

@ -103,6 +103,7 @@ body {
.main {
@include table-flex-child(8, 600px, 0, 600px);
padding: 2rem;
padding-bottom: 1rem;
}
.icon {