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