fix table width when sortable is active
This commit is contained in:
parent
bfefdb8470
commit
1cb04adb95
1 changed files with 4 additions and 0 deletions
|
@ -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: =>
|
||||||
|
|
Loading…
Reference in a new issue