From 5062b4022c4609ee1ced47c2396f5b8ee4bb2375 Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Wed, 28 Oct 2015 10:41:35 +0100 Subject: [PATCH] fix table resize method getHeaderWidth --- .../app/controllers/_application_controller_table.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller_table.coffee b/app/assets/javascripts/app/controllers/_application_controller_table.coffee index 446400866..5e3f5799f 100644 --- a/app/assets/javascripts/app/controllers/_application_controller_table.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller_table.coffee @@ -384,12 +384,12 @@ class App.ControllerTable extends App.Controller getHeaderWidths: (headers) -> widths = _.reduce headers, (memo, col, i) => - if col.style && col.width + if col.width value = parseInt col.width, 10 unit = col.width.match(/[px|%]+/)[0] else # !!! sets the width to default width if not set - headers[i].style = { width: @baseColWidth+'px' } + headers[i].width = @baseColWidth+'px' value = @baseColWidth unit = 'px'