Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore resize method if autoSize is active, and added API to check if active #1301

Merged
merged 3 commits into from
Mar 21, 2023

Conversation

SlicedSilver
Copy link
Contributor

@SlicedSilver SlicedSilver commented Mar 14, 2023

Type of PR: enhancement

PR checklist:

  • Addresses an existing issue
  • Includes tests
  • Documentation update

Overview of change:
When autoSize chart option is enabled then we should ignore any requests to change the height and width via the resize method.

Added a autoSizeActive method to the Chart API for checking if the setting is enabled and the ResizeObserver was successfully created.

@SlicedSilver SlicedSilver added this to the 4.1 milestone Mar 14, 2023
@SlicedSilver SlicedSilver self-assigned this Mar 14, 2023
@SlicedSilver
Copy link
Contributor Author

  • Failing graphics tests are expected because a new test was added.
  • dts-changes expected as a new method has been added to the API

@SlicedSilver SlicedSilver merged commit 41d63ce into master Mar 21, 2023
@SlicedSilver SlicedSilver deleted the ignore-resize-if-autosize-active branch March 21, 2023 10:36
@SlicedSilver SlicedSilver modified the milestones: 4.1, 4.0.1 Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants