Skip to content

Commit

Permalink
Redraw with dirty flags
Browse files Browse the repository at this point in the history
  • Loading branch information
FranCarrascosaMS committed Jul 3, 2023
1 parent 16fa0d3 commit 33b42cf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/timeline/Timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,13 @@ export default class Timeline extends Core {
* Can be useful to manually redraw when option autoResize=false and the window
* has been resized, or when the items CSS has been changed.
*
* Note: this function will be overridden on construction with a trottled version
* @param {boolean} refreshItems
* @param {boolean} restackGroups
*
* Note: this function will be overridden on construction with a throttled version
*/
redraw() {
this.itemSet && this.itemSet.markDirty({refreshItems: true});
redraw(refreshItems = true, restackGroups = false) {
this.itemSet && this.itemSet.markDirty({refreshItems, restackGroups});
this._redraw();
}

Expand Down

0 comments on commit 33b42cf

Please sign in to comment.