mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed column sizing issue when there are no rows in a table.
refs #5954
This commit is contained in:
parent
aaf5d64fe0
commit
f34adaca41
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user