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

when calendar was embed in a long form or an popup, system will select wrong timeslot when users click on a timeslot to select it #55

Closed
hungkoala opened this issue Mar 5, 2016 · 0 comments
Labels

Comments

@hungkoala
Copy link

 2016-03-06 00-02-41

The issue cause by function Selection.js::getBoundsForNode line top = rect.top + (document.body.scrollTop || 0) does not correct because document.body.scrollLeft return 0

The issue may be fixed by changing to:
top = rect.top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0);

see http://stackoverflow.com/questions/3464876/javascript-get-window-x-y-position-for-scroll

@jquense jquense added the bug label Mar 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants