-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[Issue-39831] Resolve Calendar popup opens over display #40089
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
base: 2.4-develop
Are you sure you want to change the base?
Conversation
Hi @bhavieway. Thank you for your contribution!
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
Failed to run the builds. Please try to re-run them later. |
2 similar comments
Failed to run the builds. Please try to re-run them later. |
Failed to run the builds. Please try to re-run them later. |
@magento run all tests |
@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE |
@magento run Sample Data Tests CE |
Failed to run the builds. Please try to re-run them later. |
Description (*)
This pull request addresses a UI issue where the calendar popup (used in various date fields) displays incorrectly when the page is scrolled. The issue occurs because
getBoundingClientRect
returns coordinates relative to the viewport, whereas the expected behavior is based on the full document scroll. The fix adjusts the position calculation to ensure the popup displays in the correct location regardless of scroll position.Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Case 1: Orders Grid in Admin Panel
Expected Result:
The calendar popup appears correctly below the input field.
Actual Result (Before Fix):
The calendar popup appears offset or overlays other parts of the screen incorrectly.
Case 2: Product Attribute Date Field
Expected Result:
Calendar appears correctly relative to the input field.
Questions or comments
Contribution checklist (*)
Preconditions and environment