From 1cb04adb95f75d5bdf12cdba70654e4232cd1d6b Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Tue, 15 Mar 2016 10:15:00 +0100 Subject: [PATCH] fix table width when sortable is active --- .../app/controllers/_application_controller_table.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/app/controllers/_application_controller_table.coffee b/app/assets/javascripts/app/controllers/_application_controller_table.coffee index 67d4e1b2b..ed6288638 100644 --- a/app/assets/javascripts/app/controllers/_application_controller_table.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller_table.coffee @@ -5,6 +5,7 @@ class App.ControllerTable extends App.Controller checkBoxColWidth: 40 radioColWidth: 22 + sortableColWidth: 36 elements: '.js-tableHead': 'tableHead' @@ -443,6 +444,9 @@ class App.ControllerTable extends App.Controller if @radio widths += @radioColWidth + if @dndCallback + widths += @sortableColWidth + return widths readjustHeaderWidths: =>