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
|
@headerWidth[key] = value
|
||||||
|
|
||||||
@availableWidth = @el.width()
|
@availableWidth = @el.width()
|
||||||
|
if @availableWidth is 0
|
||||||
|
@availableWidth = @minTableWidth
|
||||||
|
|
||||||
@renderQueue()
|
@renderQueue()
|
||||||
|
|
||||||
|
@ -820,9 +822,6 @@ class App.ControllerTable extends App.Controller
|
||||||
calculateHeaderWidths: ->
|
calculateHeaderWidths: ->
|
||||||
return if !@headers
|
return if !@headers
|
||||||
|
|
||||||
if @availableWidth is 0
|
|
||||||
@availableWidth = @minTableWidth
|
|
||||||
|
|
||||||
availableWidth = @availableWidth
|
availableWidth = @availableWidth
|
||||||
|
|
||||||
widths = @getHeaderWidths()
|
widths = @getHeaderWidths()
|
||||||
|
|
|
@ -1139,7 +1139,7 @@ class Table extends App.Controller
|
||||||
attribute.title = object.iconTitle()
|
attribute.title = object.iconTitle()
|
||||||
value
|
value
|
||||||
|
|
||||||
@table = new App.ControllerTable(
|
tableArguments =
|
||||||
tableId: "ticket_overview_#{@overview.id}"
|
tableId: "ticket_overview_#{@overview.id}"
|
||||||
overview: @overview.view.s
|
overview: @overview.view.s
|
||||||
el: @$('.table-overview')
|
el: @$('.table-overview')
|
||||||
|
@ -1176,7 +1176,14 @@ class Table extends App.Controller
|
||||||
events:
|
events:
|
||||||
'click': callbackCheckbox
|
'click': callbackCheckbox
|
||||||
select_all: 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()
|
@renderPopovers()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue