Skip to content

[7.5] [ML] Fix tooltip positioning. (#49160)#49213

Merged
walterra merged 1 commit intoelastic:7.5from
walterra:backport/7.5/pr-49160
Oct 25, 2019
Merged

[7.5] [ML] Fix tooltip positioning. (#49160)#49213
walterra merged 1 commit intoelastic:7.5from
walterra:backport/7.5/pr-49160

Conversation

@walterra
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.5:

- Moves all DOM manipulation to a ref callback for the ChartTooltip react component. The service mlChartTooltipService no longer touches the DOM, it just passed around data and triggers the chartTooltip$ observable which the ChartTooltip is subscribed to. The code infers positioning now from the tooltips parent element and we no longer rely on hard-coded Kibana classnames. Besides that the code to determine the position remains the same (with some offset tweaking).
- The mocha tests for mlChartTooltipService have been migrated to jest.
@walterra walterra added the backport This PR is a backport of another PR label Oct 24, 2019
@walterra walterra self-assigned this Oct 24, 2019
@walterra walterra added the :ml label Oct 24, 2019
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/ml-ui (:ml)

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@walterra
Copy link
Copy Markdown
Contributor Author

retest

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@walterra walterra merged commit 4e9aca2 into elastic:7.5 Oct 25, 2019
@walterra walterra deleted the backport/7.5/pr-49160 branch October 25, 2019 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR :ml

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants