-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auto-calculate width/height only once
fixes #980, fixes #1070 auto-calculating the width/height of a chart based on the parent div is a bit of a misfeature because there are many things (like the controls) that will cause the parent div to always be larger than the SVG it contains these bugs were mostly hidden in the past because we only set the SVG width/height once (on render) - now that we are resizing the SVG on redraw it causes obvious issues so restrict the auto-calculate to only fire once - although better if we could trigger calculate on each render only
- Loading branch information
1 parent
556cb46
commit 1a32bc5
Showing
2 changed files
with
13 additions
and
2 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
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