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

ScrollToHour ain't working #37

Closed
GoogleCodeExporter opened this issue Sep 9, 2015 · 4 comments
Closed

ScrollToHour ain't working #37

GoogleCodeExporter opened this issue Sep 9, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

using dayView.scrollToHour(hour);

hour beeing a int between 8-13.

What is the expected output? What do you see instead?
To get scrolled down to the rowrepresentation of 8-13. Get no scrolling at 
all.

What version of the product are you using? On what operating system?
I'm using gwt-cal-0.9.0-beta1, on Windows vista.

Please provide any additional information below.
Tried this in both Chrome and FF 3.6 without any better result. 

Any suggestion on whats the problem?

Original issue reported on code.google.com by tom...@gmail.com on 15 Mar 2010 at 1:59

@GoogleCodeExporter
Copy link
Author

Try using a deferred command to scroll. If you try to call the scrollToHour 
method before the 
browser is done rendering the component on the screen nothing will happen.

DeferredCommand.addCommand(new Command(){
    @Override
    public void execute() {
        calendar.scrollToHour(6);
    }
});

We do this in the iCal version of the demo:
http://code.google.com/p/gwt-cal/source/browse/branches/version-0.9/gwt-cal-
demo/src/com/bradrydzewski/gwt/calendar/demo/client/iCalCalendarPanel.java

Original comment by Brad.Ryd...@gmail.com on 15 Mar 2010 at 3:27

@GoogleCodeExporter
Copy link
Author

Thanks  Brad. I've spent the whole weekend trying to get this to work. 

Original comment by tom...@gmail.com on 15 Mar 2010 at 5:10

@GoogleCodeExporter
Copy link
Author

No problem - I need to document this a little better.

Next time you find yourself stuck feel free to post to our group and hopefully 
we can 
help save you some time and sanity! :)

http://groups.google.com/group/gwt-cal

Original comment by Brad.Ryd...@gmail.com on 15 Mar 2010 at 5:32

  • Changed state: Done

@GoogleCodeExporter
Copy link
Author

Issue 81 has been merged into this issue.

Original comment by Brad.Ryd...@gmail.com on 26 Aug 2010 at 2:52

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

1 participant