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

Feature Request: Trigger size invalidation through Input Observable #16

Open
bodnarbm opened this issue Feb 16, 2017 · 0 comments
Open

Comments

@bodnarbm
Copy link

Use Case:

Placing a sentio vertical bar chart inside of a closed modal results in the chart calculating the required width for the bars as 0. When the modal is then shown, the chart still uses this same bar width of 0.

Presently, we must trigger a window resize event to get the chart to redraw the bars with the correct new width of the modal. However, this also causes all other components listening to resize events to trigger and likely redraw.

Proposed Solution:

Provide an Input for the charts of type Observable. Whenever this observable emits an item, the chart triggers a recalculation of its size and then resizes the chart to match its current size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant