Skip to content
This repository has been archived by the owner on Nov 14, 2017. It is now read-only.

Scroll to top #11

Closed
Hani79 opened this issue Sep 10, 2012 · 2 comments
Closed

Scroll to top #11

Hani79 opened this issue Sep 10, 2012 · 2 comments

Comments

@Hani79
Copy link

Hani79 commented Sep 10, 2012

Whenever you click on the input, the browser scrolls to the top of the page if the datepicker popout is already in view. Basically, if the input is in the middle of the page and completely viewable, the browser still scrolls to the top of the page. Truth is, the page should remain where it is without scrolling.

Edit: some more clarification.

@Aymkdn
Copy link
Owner

Aymkdn commented Sep 11, 2012

I've fixed it (at least I think).
Now it's more efficient : if the calendar appears under the window (for example when clicking on a field at the bottom of the window) then we scroll the document. If the calendar is already inside the window, then we do nothing.
And the scroll will be only vertical (not horizontal)

@Aymkdn Aymkdn closed this as completed Sep 11, 2012
@Hani79
Copy link
Author

Hani79 commented Sep 13, 2012

That works beautifully! Thanks!

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

No branches or pull requests

2 participants