Do not apply column width changes on not table_id tables.

This commit is contained in:
Martin Edenhofer 2016-08-11 15:35:49 +02:00
parent 8a045651ce
commit cd92cdbca7
2 changed files with 7 additions and 7 deletions

View file

@ -281,6 +281,7 @@ class App.ControllerTable extends App.Controller
@objects = @objects.concat groupObjects[group]
groupObjects[group] = [] # release old array
if @table_id
@calculateHeaderWidths()
# get content
@ -406,8 +407,7 @@ class App.ControllerTable extends App.Controller
container: @container
calculateHeaderWidths: ->
if !@headers
return
return if !@headers
if @availableWidth is 0
@availableWidth = @minTableWidth
@ -448,7 +448,7 @@ class App.ControllerTable extends App.Controller
if @dndCallback
widths += @sortableColWidth
return widths
widths
setHeaderWidths: =>
@calculateHeaderWidths()