Skip to content

Tooltip explicit tooltip boundary ignored #1048

@nickofthyme

Description

@nickofthyme

Describe the bug
When using tooltip.boundary as and HTMLElement the value is ignored.

Expected behaviour
The boundary should be applied to tooltip positioning

Screenshots
Image 2021-03-03 at 3 54 13 PM

Notice the boundary element in pink, the tooltip ignores this and is position beyond the boundary.

Version (please complete the following information):

  • Elastic Charts: master

Additional context
The value in the tooltip logic only applied the boundary if its value is 'chart'

boundary: boundary === 'chart' && chartRef.current ? chartRef.current : undefined,

Kibana Cross Issues
elastic/kibana#93495

Checklist

  • every related Kibana issue is listed under Kibana Cross Issues list
  • kibana cross issue tag is associated to the issue if any kibana cross issue is present

Metadata

Metadata

Assignees

Labels

:tooltipRelated to hover tooltipbugSomething isn't workingreleasedIssue released publicly

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions