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

Scroll To Date or Step #51

Open
d2k2-git opened this issue Oct 19, 2016 · 1 comment
Open

Scroll To Date or Step #51

d2k2-git opened this issue Oct 19, 2016 · 1 comment

Comments

@d2k2-git
Copy link

For Example in Vaadin Table is a function "setCurrentPageFirstItemId".

Would it be possible to make something similar in the gantt component so we can scroll to a date or step?

@ianscriven
Copy link

I've worked around this by updating Gantt to implement Scrollable (see attached patch - note it's just a quick hack, not necessarily product-ready code).

In my application I know the size in pixels of each day, so I can scroll to the date I want by comparing it with the start date of the gantt chart. It's possible to scroll too far too - I check and prevent this in my application using https://vaadin.com/directory#!addon/sizereporter.

gantt_scroll.zip

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

No branches or pull requests

3 participants