Fixed column sizing issue when there are no rows in a table.

refs #5954
This commit is contained in:
Aditya Toshniwal 2021-05-17 17:55:13 +05:30 committed by Akshay Joshi
parent aaf5d64fe0
commit f34adaca41

View File

@ -1414,6 +1414,10 @@ define('tools.querytool', [
collection[i] = item;
}
dataView.setItems(collection, self.client_primary_key);
/* Resize the columns once if data empty */
if (collection.length === 0 && self.preferences.column_data_auto_resize) {
self.grid.resizeAllColumns && self.grid.resizeAllColumns();
}
},
fetch_next_all: function(cb) {