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

Resolving issue with TSVB resizeHandler not triggering renderChart #11259

Merged
merged 1 commit into from
Apr 14, 2017

Conversation

kobelb
Copy link
Contributor

@kobelb kobelb commented Apr 14, 2017

Previously, when viewing some time series visual builder panels on a
Dashboard and doing a hard-refresh, all the calls to flot_chart.js's
renderChart method were early returning because the resize.clientHeight
and resize.clientWidth were 0; then a call to handleResize was coming
and it wasn't triggering the initial drawing of the chart. This modifies
the logic to keep track of whether the chart has been rendered yet, and
if it hasn't calls renderChart from the resize handler.

Resolves #11258

Previously, when viewing some time series visual builder panels on a
Dashboard and doing a hard-refresh, all the calls to flot_chart.js's
renderChart method were early returning because the resize.clientHeight
and resize.clientWidth were 0; then a call to handleResize was coming
and it wasn't triggering the initial drawing of the chart. This modifies
the logic to keep track of whether the chart has been rendered yet, and
if it hasn't calls renderChart from the resize handler.
Copy link
Member

@simianhacker simianhacker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kobelb kobelb merged commit b8939ff into elastic:master Apr 14, 2017
@kobelb kobelb added the v5.4.0 label Apr 14, 2017
kobelb added a commit that referenced this pull request Apr 14, 2017
…11259)

Previously, when viewing some time series visual builder panels on a
Dashboard and doing a hard-refresh, all the calls to flot_chart.js's
renderChart method were early returning because the resize.clientHeight
and resize.clientWidth were 0; then a call to handleResize was coming
and it wasn't triggering the initial drawing of the chart. This modifies
the logic to keep track of whether the chart has been rendered yet, and
if it hasn't calls renderChart from the resize handler.
kobelb added a commit that referenced this pull request Apr 14, 2017
…11259)

Previously, when viewing some time series visual builder panels on a
Dashboard and doing a hard-refresh, all the calls to flot_chart.js's
renderChart method were early returning because the resize.clientHeight
and resize.clientWidth were 0; then a call to handleResize was coming
and it wasn't triggering the initial drawing of the chart. This modifies
the logic to keep track of whether the chart has been rendered yet, and
if it hasn't calls renderChart from the resize handler.
@kobelb
Copy link
Contributor Author

kobelb commented Apr 14, 2017

Backported

5.x - c5a44b9
5.4 - 788fded

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

Successfully merging this pull request may close these issues.

2 participants