From 5da7677677b5a4d2f116ae1a14407889d36e08a4 Mon Sep 17 00:00:00 2001 From: Artem Tabalin Date: Sat, 5 Dec 2015 03:06:08 +0100 Subject: [PATCH] Core: Set fields cell width --- src/jsgrid.core.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/jsgrid.core.js b/src/jsgrid.core.js index aa95c5c1..8f1e3ad0 100755 --- a/src/jsgrid.core.js +++ b/src/jsgrid.core.js @@ -616,9 +616,8 @@ $result = $("").append(field.itemTemplate ? field.itemTemplate(fieldValue, item) : fieldValue); } - $result.addClass(field.css); - $result.css({"width": field.width}); - + $result.addClass(field.css) + .width(field.width); field.align && $result.addClass("jsgrid-align-" + field.align);