fin-hypergrid / fin-hypergrid/core

Defer "changed" methods

Open
#660 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
907
Forks
139
PR merge metrics
No merged PRs in 30d

Description

The following should be able to be called multiple times, similar to `repaint()`, while deferring and collapsing all calls until the end of the thread:

* `behaviorChanged`
Does one of the following:
* `behaviorShapeChanged`
Recalculates scrollbars, followed by...
* `behaviorStateChanged`
Recalculate rects of visible cells, followed by a call to `repaint()`

Right now the two recalc operations are performed on every call. For this reason we have always tried only to make such calls near end of thread, sometimes omitting calls where logically needed to avoid multiple recalcs but sometimes no doubt incurring multiple recalcs needlessly

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.