Skip to content

Commit

Permalink
fix: override cell size when using cumulative values
Browse files Browse the repository at this point in the history
This is to accommodate the accumulated value which might need a wider cell.
The cell size is computed based on the rendered value.
  • Loading branch information
edoardo committed Nov 10, 2023
1 parent 9f75b0c commit 7581c12
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/modules/pivotTable/PivotTableEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,13 @@ export class PivotTableEngine {
)

this.accumulators.rows[row][column] = renderedValue

// override cell sizes based on their new content
// this works for non empty cells where the new value can require a wider cell
this.adaptiveClippingController.add(
{ row, column },
renderedValue
)
}

return acc
Expand Down

0 comments on commit 7581c12

Please sign in to comment.