solarwinds / nova

Apache License 2.0
23 stars 19 forks source link

Display MenuComponent popups correctly when located at bottom right corner of the viewport #692

Closed michal-kalina closed 5 months ago

michal-kalina commented 5 months ago

Describe the bug When MenuComponent is placed on the bottom right side of a viewport it may render a popup shifted incorrectly regarding the origin button leading to a situation where the popup is not fully visible in the viewport of the browser. To Reproduce

  1. Go to: https://nova-ui.solarwinds.io/bits/release_v15.0.x/components/MenuComponent.html
  2. Open devtool and move menuComponent to the bottom right corner as shown on the screenshot. right-bottom

    For other corners, the issue does not occur

    right-top left-top left-bottom

Expected behaviour The menu component popup is rendered within the viewport even if the origin button is placed at the bottom right corner of the viewport.

pavlo-poimanov commented 5 months ago

https://github.com/solarwinds/nova/pull/694