diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/JExcelEditorManager.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/JExcelEditorManager.js index 4c1ab4c4bf814f16365bc0b97ff969d0d85277be..8243e23ce83bab15d142dc9e1940e36d27755669 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/JExcelEditorManager.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/JExcelEditorManager.js @@ -7,15 +7,16 @@ var JExcelEditorManager = new function() { return function(el, record, x, y, value) { var jExcelEditor = _this.jExcelEditors[guid]; if(jExcelEditor) { - // Change column width - var columnWidth = parseInt(jExcelEditor.getWidth(x)); - var td = el.children[1].children[0].children[2].children[y].children[parseInt(x)+1]; - var columnScrollWidth = td.scrollWidth; - - if(columnScrollWidth > columnWidth) { - jExcelEditor.setWidth(x, columnScrollWidth + 10); + if(value) { + // Change column width + var columnWidth = parseInt(jExcelEditor.getWidth(x)); + var td = el.children[1].children[0].children[2].children[y].children[parseInt(x)+1]; + var columnScrollWidth = td.scrollWidth; + + if(columnScrollWidth > columnWidth) { + jExcelEditor.setWidth(x, columnScrollWidth + 10); + } } - // Save Editor var data = jExcelEditor.getData(); var style = jExcelEditor.getStyle();