-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix drag rectangle calculation when in shadow BOM (#732)
The edges of the drag rectangle were calculated incorrectly when the chart is placed inside a shadow BOM (eg. inside a web component). Chart.js itself already has fixes for that (see PRs #7225 and #8082). Its getRelativePosition() function always returns the correct coordinates. So import and use this function from Chart.js. Co-authored-by: Marco von Rosenberg <[email protected]>
- Loading branch information
1 parent
f6f178a
commit 8c39fba
Showing
1 changed file
with
10 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters