fix table resize method getHeaderWidth
This commit is contained in:
parent
de26307458
commit
5062b4022c
1 changed files with 2 additions and 2 deletions
|
@ -384,12 +384,12 @@ class App.ControllerTable extends App.Controller
|
||||||
|
|
||||||
getHeaderWidths: (headers) ->
|
getHeaderWidths: (headers) ->
|
||||||
widths = _.reduce headers, (memo, col, i) =>
|
widths = _.reduce headers, (memo, col, i) =>
|
||||||
if col.style && col.width
|
if col.width
|
||||||
value = parseInt col.width, 10
|
value = parseInt col.width, 10
|
||||||
unit = col.width.match(/[px|%]+/)[0]
|
unit = col.width.match(/[px|%]+/)[0]
|
||||||
else
|
else
|
||||||
# !!! sets the width to default width if not set
|
# !!! sets the width to default width if not set
|
||||||
headers[i].style = { width: @baseColWidth+'px' }
|
headers[i].width = @baseColWidth+'px'
|
||||||
value = @baseColWidth
|
value = @baseColWidth
|
||||||
unit = 'px'
|
unit = 'px'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue