Browse Source

fix table width when sortable is active

Felix Niklas 9 years ago
parent
commit
1cb04adb95

+ 4 - 0
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: =>