Skip to content

Only apply forced max mode when panel is shown - #15752

Merged
timroes merged 1 commit into
elastic:masterfrom
timroes:fix-disappearing-vis
Dec 23, 2017
Merged

timroes merged 1 commit into
elastic:masterfrom
timroes:fix-disappearing-vis

Conversation

@timroes

@timroes timroes commented Dec 22, 2017

Copy link
Copy Markdown
Contributor

This PR fixes #15742 where vis appear not to render on dashboard.

This bug was caused by the spy panel refactoring. It checked whether the remaining vis size after a rendering would be below 180px and in this case make the spy fullscreen automatically (same behavior as beforehand). Unfortunately I forgot to check if the spy panel is actually open, so it applied the class also after rendering if the spy panel was closed and smaller then 180px, which cause it to display: none.

This PR now checks if $scope.currentMode is set (it's set to the name of the open spypanel or null if it's closed), before setting the forceMaximized which itself will trigger setting the class in a watch a bit down in the spy.js file.

@timroes timroes added Feature:Visualizations Generic visualization features (in case no more specific feature label is available) bug Fixes for quality problems that affect the customer experience v6.2.0 v7.0.0 labels Dec 22, 2017

@ppisljar ppisljar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, once the tests pass

@stacey-gammon

Copy link
Copy Markdown

jenkins, test this

@stacey-gammon

Copy link
Copy Markdown

jenkins, test this

@stacey-gammon stacey-gammon left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lgtm and fixes the issue, but prob want to wait till you can trigger a build and get it green. Not sure why but jenkins doesn't seem to be firing

@timroes

timroes commented Dec 22, 2017

Copy link
Copy Markdown
Contributor Author

Jenkins, test this

@timroes
timroes merged commit b8dc4cc into elastic:master Dec 23, 2017
@timroes
timroes deleted the fix-disappearing-vis branch December 23, 2017 17:40
timroes added a commit to timroes/kibana that referenced this pull request Dec 23, 2017
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes for quality problems that affect the customer experience Feature:Visualizations Generic visualization features (in case no more specific feature label is available) v6.2.0 v7.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dashboard panel contents disappearing on hard refresh after resizing

3 participants