google-code-export / gwt-cal

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

CalendarSettings setScrollToHour not working #97

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Define a CalendarSettings
        final CalendarSettings settings = new CalendarSettings();
        settings.setIntervalsPerHour(2);
        settings.setWorkingHourStart(7);
        settings.setWorkingHourEnd(22);
        settings.setOffsetHourLabels(true);
        settings.setScrollToHour(13);

2. Define a Calendar
        final Calendar calendar = new Calendar();
        calendar.setDate(new Date());
        calendar.setDays(3);
        calendar.setView(CalendarViews.DAY, 3);

3. Bind 'settings' with 'calendar' and add to panel
        calendar.setSettings(settings);
RootPanel.get("calendar").add(calendar);

What is the expected output? What do you see instead?
See the calendar scrooled to 13PM but nothing happens.

What version of the product are you using? On what operating system?
GWT 2.1.0, gwt-cal 0.9.2 and gwt-dnd 3.0.1

Please provide any additional information below.
...

Original issue reported on code.google.com by reichel....@gmail.com on 4 Nov 2010 at 2:22

GoogleCodeExporter commented 9 years ago
Please see the following thread:
http://groups.google.com/group/gwt-cal/browse_thread/thread/c928f8caa2d3fe68/810
c1dd518684df0?lnk=gst&q=scrollToHour#810c1dd518684df0

You are required to use a DeferredCommand the first time you invoke the 
scrollToHour function.

Original comment by Brad.Ryd...@gmail.com on 4 Nov 2010 at 3:37