Marc358 / gwt-cal

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

TimeBlock scrolling problem #170

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
<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 Temofey1...@gmail.com on 1 Nov 2012 at 9:37

GoogleCodeExporter commented 8 years ago
Hi Artyom,

Can you please test with the 0.94-RC1 code? If you still have problems, can you 
send/attach some code to replicate the problem? Maybe a patch to the 
gwt-cal-demo code or something similar.

Regards,
Carlos.

Original comment by ctasada on 19 Dec 2012 at 10:52