fix table width when sortable is active

This commit is contained in:
Felix Niklas 2016-03-15 10:15:00 +01:00
parent bfefdb8470
commit 1cb04adb95

View file

@ -5,6 +5,7 @@ class App.ControllerTable extends App.Controller
checkBoxColWidth: 40 checkBoxColWidth: 40
radioColWidth: 22 radioColWidth: 22
sortableColWidth: 36
elements: elements:
'.js-tableHead': 'tableHead' '.js-tableHead': 'tableHead'
@ -443,6 +444,9 @@ class App.ControllerTable extends App.Controller
if @radio if @radio
widths += @radioColWidth widths += @radioColWidth
if @dndCallback
widths += @sortableColWidth
return widths return widths
readjustHeaderWidths: => readjustHeaderWidths: =>