Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context menu position and size are not drawn correctly #4549

Closed
sinbino opened this issue Aug 2, 2024 · 2 comments
Closed

Context menu position and size are not drawn correctly #4549

sinbino opened this issue Aug 2, 2024 · 2 comments
Labels
Possible Bug A possible bug that needs investigation

Comments

@sinbino
Copy link

sinbino commented Aug 2, 2024

Describe the bug
If rowContextMenu is opened at the bottom of the browser document area, the context menu is expected to expand upward from the cursor position, but it expands downward and is displayed off-screen.
Also, if it is opened at the bottom edge of the table, a context menu with an odd height is generated.

Tabulator Info

  • Which version of Tabulator are you using?
    Tabulator 6.2.5

Working Example
https://jsfiddle.net/sinbino/0g32xpck/4/

To Reproduce

  1. Go to https://jsfiddle.net/sinbino/0g32xpck/4/
  2. Right-click on row near the bottom of the table to open the context menu
  3. Even at the bottom of the browser's document area, the context menu is drawn downward and cannot be manipulated. They may also be drawn at odd lengths

Expected behavior
Context menus should be drawn at the correct height in the upward direction.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows10 22H2 19045.4046
  • Browser chrome
  • Version 127.0.6533.88

Edit:
Add a sample Tabulator table with a height to match the browser viewport.
Right-clicking at the bottom of the table opens a context menu off-screen.
https://jsfiddle.net/sinbino/1xg7vfts/24/

@sinbino sinbino added the Possible Bug A possible bug that needs investigation label Aug 2, 2024
@Martino-Martinez
Copy link

Martino-Martinez commented Aug 6, 2024

Similar issue: #4510

@sinbino
Copy link
Author

sinbino commented Aug 8, 2024

That's right. Sorry, I guess I overlooked that.

@sinbino sinbino closed this as completed Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Possible Bug A possible bug that needs investigation
Projects
None yet
Development

No branches or pull requests

2 participants