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

appendTo inside relative position #105

Open
sabob opened this issue Mar 3, 2019 · 3 comments
Open

appendTo inside relative position #105

sabob opened this issue Mar 3, 2019 · 3 comments

Comments

@sabob
Copy link

sabob commented Mar 3, 2019

Hi all,

In the latest release 3.2.8 the appendTo feature is documented but not included in the build file https://github.com/chrisdavies/tiny-date-picker/blob/master/dist/tiny-date-picker.js.

I've built tiny-picker from source but ran into a minor issue with the calendar position when using mode="dp-below" and appendTo. Here is a fiddle:

In this fiddle, https://jsfiddle.net/sabob/80v2t6g4/28 I use bootstrap grid.

There are two datepickers, one appended to body (default) and one appendTo a span.

Notice the second datepicker renders to the right of the input.

I think this has to do because children of the Bootstrap container class has position : relative and hence the datepicker algorithm to find the best position is wrong? When datepicker is appended to body it works correctly.

Not sure if it will be possible to fix though?

Kind regards

Bob

@jonkelling
Copy link

Any update on this? The npm package appears to be missing the update.

Thanks!

Jon

@sporifolous
Copy link

I was having the same problem. Sadly looks like this hasn't been updated in over a year, despite a PR with a fix.

@CaptainCannabis
Copy link

CaptainCannabis commented Jul 20, 2020

same to me - calender is appended to the body, always. Using v3.2.8 via npm

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

No branches or pull requests

4 participants