Commit 7c574b00 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

adjust table width.

parent 679b8946
......@@ -247,6 +247,7 @@
if (spreadsheet_data !== undefined) {
var spreadsheet = $('#spreadsheet_input');
spreadsheet.handsontable('populateFromArray', 0, 0, spreadsheet_data);
spreadsheet.find('.htCore').width(spreadsheet.width());
}
var preference = data.preference !== undefined ?
......@@ -452,11 +453,13 @@
$.plot("#graph", series, options);
if (spreadsheet_data.length > 1) {
$('#spreadsheet_output').show();
$('#spreadsheet_output').handsontable({
var spreadsheet = $('#spreadsheet_output');
spreadsheet.show();
spreadsheet.handsontable({
data: spreadsheet_data,
readOnly: true
});
spreadsheet.find('.htCore').width(spreadsheet.width());
$('#gantt_output').show().dhx_gantt({
data: gantt_data,
scale_unit: 'day',
......
......@@ -130,6 +130,7 @@
priv.onDataChange();
}
});
spreadsheet.find('.htCore').width(spreadsheet.width());
};
priv.updateElementCoordinate = function (node_id, coordinate) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment