# Bug OP-10503 - Date picker gets cut when there is no scroll

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-10503

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.2.0 |
| Observed in versions |  |
| Sprint | 12.2.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Login as a user
2.  Go to a work package
3.  Reduce the window height and scroll so that the date field is about two thirds away from the top
    1.  Note: There should be some space to the bottom but not enough to fit the whole datepicker modal below the field
4.  Click on &quot;Dates&quot; to open the date picker

Note: The bug is due to a timing issue so it might be worth repeating step 4 a few times  

### What is the buggy behavior?

The date picker still appears bellow the field and gets cut

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/33175/content"></div></figure>

### What is the expected behavior?

1.  The date picker in this case should appear on top of the field so its displayed complete. This placement should be automatically taken in relation to the max height of the modal.

### Environment information

**OpenProject installation type**

*   [ ] Hosted cloud edition
*   [ ] Packaged installation
    *   What distribution?
*   [ ] Docker All-in-one container
*   [ ] Docker-compose installation
*   [x] Other: Edge environment

**OpenProject version**

_v12.1.4_

**Browser**

*   [x] Chrome
*   [ ] Firefox
*   [ ] Safari
*   [ ] Mobile Safari
*   [ ] Other (please specify)

**Language**

English
