Fixed issue #2031 - Column width is resized to a non readable minimum.
This commit is contained in:
parent
9c712d2d89
commit
ba4e3231a4
2 changed files with 12 additions and 6 deletions
|
@ -168,6 +168,8 @@ class App.ControllerTable extends App.Controller
|
|||
@headerWidth[key] = value
|
||||
|
||||
@availableWidth = @el.width()
|
||||
if @availableWidth is 0
|
||||
@availableWidth = @minTableWidth
|
||||
|
||||
@renderQueue()
|
||||
|
||||
|
@ -820,9 +822,6 @@ class App.ControllerTable extends App.Controller
|
|||
calculateHeaderWidths: ->
|
||||
return if !@headers
|
||||
|
||||
if @availableWidth is 0
|
||||
@availableWidth = @minTableWidth
|
||||
|
||||
availableWidth = @availableWidth
|
||||
|
||||
widths = @getHeaderWidths()
|
||||
|
|
|
@ -1139,7 +1139,7 @@ class Table extends App.Controller
|
|||
attribute.title = object.iconTitle()
|
||||
value
|
||||
|
||||
@table = new App.ControllerTable(
|
||||
tableArguments =
|
||||
tableId: "ticket_overview_#{@overview.id}"
|
||||
overview: @overview.view.s
|
||||
el: @$('.table-overview')
|
||||
|
@ -1176,7 +1176,14 @@ class Table extends App.Controller
|
|||
events:
|
||||
'click': callbackCheckbox
|
||||
select_all: callbackCheckbox
|
||||
)
|
||||
|
||||
# remember elWidth even if table is not shown but rerendered
|
||||
if @el.width() != 0
|
||||
@elWidth = @el.width()
|
||||
if @elWidth
|
||||
tableArguments.minTableWidth = @elWidth
|
||||
|
||||
@table = new App.ControllerTable(tableArguments)
|
||||
|
||||
@renderPopovers()
|
||||
|
||||
|
|
Loading…
Reference in a new issue