Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Using datepicker with append to body causes position issue when changing screen size #5270

Open
deeg opened this issue Jan 15, 2016 · 3 comments

Comments

@deeg
Copy link
Contributor

deeg commented Jan 15, 2016

Go to this plunker and open the datepicker for the one on the right. (They should be side by side)

While the datepicker is open, make the screen smaller. Notice the input moves but the datepicker stays in the same place and is no longer aligned with the input.

I'm not sure if this will be fixed as part of #4762.

There is another issue with append-to-body (#5058), both might be able to be fixed at once.

@jonkri
Copy link

jonkri commented Feb 3, 2016

Sorry if I'm posing something irrelevant here, but I'm also noticing that the button that toggles the datepicker does not always have the same height as the input field next to it.

Adding the form-control class to the button did fix this issue in at least one situation, but made the button too narrow instead.

In Firefox the height seems to be correct with the default zoom, but breaks sometimes when zooming. In Safari, it looks broken out of the box.

@jonkri
Copy link

jonkri commented Feb 3, 2016

Actually, the height problem seems to only occur upon zoom on Safari as well - sorry about that!

@wesleycho wesleycho modified the milestone: 1.2.3 Mar 6, 2016
@wesleycho
Copy link
Contributor

With the datepicker supporting positioning, some simple logic around debouncing a resize event callback that repositions the popup should suffice.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants