Skip to content
This repository was archived by the owner on Feb 14, 2019. It is now read-only.
This repository was archived by the owner on Feb 14, 2019. It is now read-only.

With bootstrap 3 scrollable modal, datepicker does not scroll with input but keeps its position... #242

@xklid101

Description

@xklid101

Hi there,
I`m using datetimepicker in bootstrap modal window, but when modal window is scrollable (when it has greater height than body) - after scrolling, datetimepicker just keeps its position and does not scroll with input.
It is because dtpicker is appended to body. It would work, I guess, if dtpicker would be appended to modal, but it is impossible to easily do this
(I can fix position just after 'show' event is fired, but when i click e.g. month, and days are shown, dtpicker is positioned again automaticaly)
Is it possible to set any option 'where to append' or is there any easy solution to fix dtpciker position a keep it fixed? Thx

(attaching images, to see)

before scroll - all ok
before_scroll

after scroll - bad position
after_scroll

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions