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

TimeBlock scrolling problem #170

Open
GoogleCodeExporter opened this issue Apr 27, 2015 · 1 comment
Open

TimeBlock scrolling problem #170

GoogleCodeExporter opened this issue Apr 27, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

<br>What steps will reproduce the problem?</br>
1.Scroll down browser window (calendar height is bigger then browser window).
2.Drag and drop time block.

<br>What is the expected output? What do you see instead?</br>
Selected time aria is shifted. 

<br>What version of the product are you using? On what operating system?</br>
0.9.3.1 under Linux OS.

<br>Description:</br>
In r431 specified that this problem was solved, but it still don't work well.
In 'gwt-cal-0.9.3.1.jar' changes (r431) are not applied.
After applying changes which was described in r431 problem still wasn't solved.
Problem was detected in:
<code>
public class DayView extends CalendarView {
   ...
   private void timeBlockClick(int x, int y) {
      ...
      NativeEvent evt = Document.get().createMouseDownEvent(1, 0, 0, x, y, false,
                  false, false, false, NativeEvent.BUTTON_LEFT);
      ...
   }
   ...
}
</code>
After changing to:
<code>
public class DayView extends CalendarView {
   ...
   private void timeBlockClick(int x, int y) {
      ...
      NativeEvent evt = Document.get().createMouseDownEvent(1, 0, 0,
                      x - Window.getScrollLeft(),
                      y - Window.getScrollTop(), false,
                  false, false, false, NativeEvent.BUTTON_LEFT);
      ...
   }
   ...
}
</code>
calendar works well.

Original issue reported on code.google.com by [email protected] on 1 Nov 2012 at 9:37

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