Skip to content

Commit

Permalink
Fix onColumnGroupOpened
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgallagher92 committed Jun 28, 2024
1 parent dd170b9 commit 5acdcce
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/AgGrid.fs
Original file line number Diff line number Diff line change
Expand Up @@ -559,12 +559,17 @@ type AgGrid<'row> =
{|
AutoSizeGroupColumns =
fun () ->
// Runs the column autoSize in a 0ms timeout so that the cellRendererFramework cells render
// before the grid calculates how large each cell is
// Runs the column autoSize in a 0ms timeout so that the cellRenderer cells render before
// the grid calculates how large each cell is
JS.setTimeout
(fun () ->
let colIds = ev?columnGroup?children |> Array.map (fun x -> x?colId)
ev?columnApi?autoSizeColumns colIds)
let colIds =
ev?columnGroups
|> Seq.head
|> fun cg -> cg?children
|> Array.map (fun x -> x?colId)

ev?api?autoSizeColumns colIds)
0
|> ignore
|}
Expand Down

0 comments on commit 5acdcce

Please sign in to comment.