google-code-export / gwt-cal

Automatically exported from code.google.com/p/gwt-cal
1 stars 0 forks source link

ScrollToHour ain't working #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Issue 81 has been merged into this issue.

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