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

Allow to append datepicker to body #1880

Merged
merged 1 commit into from
Apr 30, 2021

Conversation

raimund-schluessler
Copy link
Contributor

@raimund-schluessler raimund-schluessler commented Apr 26, 2021

This is the trivial but imperfect fix for #998. We allow to attach the datepicker to body instead of the parent DOM element, so that the datepicker is not cropped by the AppSidebar.

The good thing about this solution is that the probability of breaking anything is quite low, since the default behaviour is unchanged (the change to the CSS is only necessary, because the datepicker attached to body has no .mx-datepicker container anymore).

The bad thing is, that the datepicker will scroll with body when attached to it (but it re-opens at the right position):

datepicker

I have a more sophisticated solution in #1881 which solves the scrolling problem and works very nicely, but it requires changes to AppSidebar and to the datepicker library we use. I will provide a separate PR for it.

Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
@raimund-schluessler raimund-schluessler added 3. to review Waiting for reviews feature: datepicker Related to the date/time picker component labels Apr 26, 2021
@tcitworld tcitworld requested review from ChristophWurst and removed request for georgehrke April 26, 2021 08:59
@raimund-schluessler raimund-schluessler added the bug Something isn't working label Apr 26, 2021
@ChristophWurst ChristophWurst merged commit 6c8438c into master Apr 30, 2021
@ChristophWurst ChristophWurst deleted the fix/noid/datepicker-cropped branch April 30, 2021 07:02
@raimund-schluessler
Copy link
Contributor Author

/backport to stable3

@skjnldsv

This comment has been minimized.

@backportbot-nextcloud

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews backport-request bug Something isn't working feature: datepicker Related to the date/time picker component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants