Skip to content

Bug - Popover - Popover positioning can result in contents outside viewport #7162

@rhamilto

Description

@rhamilto

Describe the problem
It appears Popover is rendering (and thus positioning itself) before children components passed to bodyContent have finished rendering, resulting in poor placement of the Popover.

Screen Shot 2022-04-01 at 9 06 52 AM

If I replace children with static JSX (e.g., <div>Lorem ipsum.</div>, the bug doesn’t occur.

Screen Shot 2022-04-01 at 9 05 32 AM

Is there some way to tell the parent Popover not to render until the children have fully rendered?

How do you reproduce the problem?
See https://bugzilla.redhat.com/show_bug.cgi?id=2070457

Expected behavior
Popover doesn't show and position until contents are finished rendering.

Is this issue blocking you?
Yes. See https://bugzilla.redhat.com/show_bug.cgi?id=2070457. We've had similar issues in OpenShift console as well.

Screenshots
See above.

What is your environment?

  • OS: MacOS
  • Browser: Chrome
  • Version: 100.0.4896.60

What is your product and what release date are you targeting?

OpenShift 4.11

Any other information?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions