# Strange behavior of datetimepicker widget

**URL:** https://discuss.tryton.org/t/strange-behavior-of-datetimepicker-widget/4167
**Category:** Developer
**Created:** [May 8, 2021, 2:51pm UTC](https://discuss.tryton.org/t/strange-behavior-of-datetimepicker-widget/4167 "2021-05-08T14:51:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![fxaviergb](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/fxaviergb/32/484_2.png) [@fxaviergb](https://discuss.tryton.org/u/fxaviergb)
#### Post date: [May 8, 2021, 2:51pm UTC](https://discuss.tryton.org/t/strange-behavior-of-datetimepicker-widget/4167/1 "2021-05-08T14:51:06Z")

</div>

When you click on the date selector, the calendar is displayed but it is placed behind the fields that are present on the screen and a scroll is added in the section to which the calendar widget belongs. I thought it was a consequence of what I added in my custom.css, however I noticed that the same thing happens in the demo [https://demo5.6.tryton.org/](https://demo5.6.tryton.org/)

How to solve it? I thank you in advance.

 ![image](https://discuss-cdn.tryton.org/uploads/default/original/2X/9/9614d216601e4e4df2b7d2305d7b76c59b3bc068.png)

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [May 8, 2021, 3:19pm UTC](https://discuss.tryton.org/t/strange-behavior-of-datetimepicker-widget/4167/2 "2021-05-08T15:19:56Z")

</div>

That’s why we replaced the widget in 6.0.

---

<div class="post-metadata">

### Author: ![fxaviergb](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/fxaviergb/32/484_2.png) [@fxaviergb](https://discuss.tryton.org/u/fxaviergb)
#### Post date: [May 9, 2021, 8:21pm UTC](https://discuss.tryton.org/t/strange-behavior-of-datetimepicker-widget/4167/3 "2021-05-09T20:21:37Z")

</div>

And maybe there is some way to patch the issue until I can migrate to version 6.0?

---

<div class="post-metadata">

### Author: ![dave](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dave](https://discuss.tryton.org/u/dave)
#### Post date: [May 10, 2021, 11:36am UTC](https://discuss.tryton.org/t/strange-behavior-of-datetimepicker-widget/4167/4 "2021-05-10T11:36:13Z")

</div>

You could certainly give it a go, but it’s probably just easier to upgrade to version 6.0.

The dependency got removed in [Remove tempusdominus dependency (#9922) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue9922), so you would need to do something similar yourself to the version you are using.
