Skip to content

Commit df60df6

Browse files
author
Ben Baumgold
committed
#60 fix autoSizeColumns
1 parent 990fbda commit df60df6

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "TableView"
22
uuid = "40c74d1a-b44c-5b06-a7c1-6cbea58ea978"
3-
version = "0.6.2"
3+
version = "0.6.3"
44

55
[deps]
66
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"

src/TableView.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,7 @@ function _showtable_sync!(w, schema, names, types, rows, coldefs, tablelength, i
202202
"rowNumberRenderer" => RowNumberRenderer
203203
)
204204
this.table = @new agGrid.Grid(el, gridOptions)
205-
206-
gridOptions.columnApi.autoSizeColumn("__row__")
207-
gridOptions.columnApi.autoSizeColumns($names)
205+
gridOptions.columnApi.autoSizeAllColumns()
208206
end
209207
onimport(w, handler)
210208
end
@@ -242,10 +240,8 @@ function _showtable_async!(w, schema, names, types, rows, coldefs, tablelength,
242240
gridOptions.components = Dict(
243241
"rowNumberRenderer" => RowNumberRenderer
244242
)
245-
246243
this.table = @new agGrid.Grid(el, gridOptions)
247-
gridOptions.columnApi.autoSizeColumn("__row__")
248-
gridOptions.columnApi.autoSizeColumns($names)
244+
gridOptions.columnApi.autoSizeAllColumns()
249245
end
250246
onimport(w, handler)
251247
end

0 commit comments

Comments
 (0)